summaryrefslogtreecommitdiff
path: root/gi/pyp-topics/src/timing.h
diff options
context:
space:
mode:
Diffstat (limited to 'gi/pyp-topics/src/timing.h')
-rw-r--r--gi/pyp-topics/src/timing.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gi/pyp-topics/src/timing.h b/gi/pyp-topics/src/timing.h
index 7543295c..08360b0f 100644
--- a/gi/pyp-topics/src/timing.h
+++ b/gi/pyp-topics/src/timing.h
@@ -4,9 +4,15 @@
#ifdef __CYGWIN__
# ifndef _POSIX_MONOTONIC_CLOCK
# define _POSIX_MONOTONIC_CLOCK
+// this modifies <time.h>
+# endif
+// in case someone included <time.h> before we got here (this is lifted from time.h>)
+# ifndef CLOCK_MONOTONIC
+# define CLOCK_MONOTONIC (clockid_t)4
# endif
#endif
+
#include <time.h>
#include <sys/time.h>
#include "clock_gettime_stub.c"