summaryrefslogtreecommitdiff
path: root/gi/pyp-topics/src/timing.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-07 14:15:21 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-07 14:15:21 +0000
commita4208b6ffdded5e03959245026b88f7716406de3 (patch)
tree1399bc0ca2daf22375dc3ca2bca5a844c588f416 /gi/pyp-topics/src/timing.h
parent3fc163ac91c04c90962561cae6028d7bcf72f5f2 (diff)
cygwin compile
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@176 ec762483-ff6d-05da-a07a-a48fb63a330f
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"