Browse Source

loony mingwcross bug: insist we dont have clock_gettime.

Nick Mathewson 7 years ago
parent
commit
22314f9050
2 changed files with 4 additions and 0 deletions
  1. 1 0
      src/common/compat_time.c
  2. 3 0
      src/common/compat_time.h

+ 1 - 0
src/common/compat_time.c

@@ -13,6 +13,7 @@
 #include "compat.h"
 
 #ifdef _WIN32
+#undef HAVE_CLOCK_GETTIME
 #include <winsock2.h>
 #include <windows.h>
 #endif

+ 3 - 0
src/common/compat_time.h

@@ -19,6 +19,9 @@
 #define TOR_COMPAT_TIME_H
 
 #include "orconfig.h"
+#ifdef _WIN32
+#undef HAVE_CLOCK_GETTIME
+#endif
 
 #if defined(HAVE_CLOCK_GETTIME)
 /* to ensure definition of CLOCK_MONOTONIC_COARSE if it's there */