瀏覽代碼

loony mingwcross bug: insist we dont have clock_gettime.

Nick Mathewson 7 年之前
父節點
當前提交
22314f9050
共有 2 個文件被更改,包括 4 次插入0 次删除
  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 */