]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Try to fix mingw build.
authorNick Mathewson <nickm@torproject.org>
Fri, 2 Oct 2015 16:31:43 +0000 (18:31 +0200)
committerNick Mathewson <nickm@torproject.org>
Fri, 2 Oct 2015 16:31:43 +0000 (18:31 +0200)
src/test/test_tortls.c

index e467cd5710376106adc1a120e62497ff2ce05cc2..2cf03323be060516a9f574094d501bf75b9175f0 100644 (file)
@@ -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
 #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