aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/compat_time.c')
-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