summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-10-02 18:31:43 +0200
committerNick Mathewson <nickm@torproject.org>2015-10-02 18:31:43 +0200
commitb31cdf4ad626e227967ee0f3198705d7c2e322e2 (patch)
tree9782f05e4afa5a96ef35528e751390f2dee0ee0f
parent561d4136aca5c024f64cc21b062db5260024c9a0 (diff)
downloadtor-b31cdf4ad626e227967ee0f3198705d7c2e322e2.tar.gz
tor-b31cdf4ad626e227967ee0f3198705d7c2e322e2.zip
Try to fix mingw build.
-rw-r--r--src/test/test_tortls.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c
index e467cd5710..2cf03323be 100644
--- a/src/test/test_tortls.c
+++ b/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