summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-07-26 08:22:23 -0400
committerNick Mathewson <nickm@torproject.org>2016-07-26 08:22:37 -0400
commit3f9c036821ee5b3c5f3958d7dc41d62a450da36e (patch)
treeb8e956cbc1ea1afde3554944cc0b42c705130c97
parent81cc31d3fa50110d8e444ae2416beeef46d566c1 (diff)
downloadtor-3f9c036821ee5b3c5f3958d7dc41d62a450da36e.tar.gz
tor-3f9c036821ee5b3c5f3958d7dc41d62a450da36e.zip
Try a little harder to work around mingw clock_gettime weirdness
-rw-r--r--src/common/compat_time.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/compat_time.c b/src/common/compat_time.c
index a50760eb0e..4757225404 100644
--- a/src/common/compat_time.c
+++ b/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