瀏覽代碼

Try to fix mingw build.

Nick Mathewson 8 年之前
父節點
當前提交
b31cdf4ad6
共有 1 個文件被更改,包括 9 次插入5 次删除
  1. 9 5
      src/test/test_tortls.c

+ 9 - 5
src/test/test_tortls.c

@@ -5,6 +5,15 @@
 #define LOG_PRIVATE
 #include "orconfig.h"
 
+#ifdef _WIN32
+#include <winsock2.h>
+#endif
+
+#include "or.h"
+#include "torlog.h"
+#include "config.h"
+#include "tortls.h"
+
 #ifdef __GNUC__
 #define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
 #endif
@@ -33,11 +42,6 @@
 #endif
 #endif
 
-#include "or.h"
-#include "torlog.h"
-#include "config.h"
-#include "tortls.h"
-
 #include "test.h"
 #include "log_test_helpers.h"
 #define NS_MODULE tortls