summaryrefslogtreecommitdiff
path: root/src/lib/clock_gettime.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/clock_gettime.h')
-rw-r--r--src/lib/clock_gettime.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/clock_gettime.h b/src/lib/clock_gettime.h
index ac4ca1f85..ea14f885c 100644
--- a/src/lib/clock_gettime.h
+++ b/src/lib/clock_gettime.h
@@ -30,13 +30,19 @@
/* otherwise, we have to define it */
+#ifndef __WIN32__
+
/* get timespec from <time.h> */
#include <time.h>
+#endif /* ! __WIN32__ */
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
+struct timespec;
+
typedef enum {
CLOCK_REALTIME,
CLOCK_MONOTONIC,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback