Browse Source

Try a little harder to work around mingw clock_gettime weirdness

Nick Mathewson 7 years ago
parent
commit
3f9c036821
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/common/compat_time.c

+ 4 - 1
src/common/compat_time.c

@@ -13,7 +13,6 @@
 #include "compat.h"
 
 #ifdef _WIN32
-#undef HAVE_CLOCK_GETTIME
 #include <winsock2.h>
 #include <windows.h>
 #endif
@@ -45,6 +44,10 @@
 #endif
 #endif
 
+#ifdef _WIN32
+#undef HAVE_CLOCK_GETTIME
+#endif
+
 #ifdef TOR_UNIT_TESTS
 /** Delay for <b>msec</b> milliseconds.  Only used in tests. */
 void