소스 검색

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