diff options
-rw-r--r-- | src/common/compat_time.c | 5 |
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 |