[tor-commits] [tor/master] Try to fix mingw build.
nickm at torproject.org
nickm at torproject.org
Fri Oct 2 16:32:06 UTC 2015
commit b31cdf4ad626e227967ee0f3198705d7c2e322e2
Author: Nick Mathewson <nickm at torproject.org>
Date: Fri Oct 2 18:31:43 2015 +0200
Try to fix mingw build.
---
src/test/test_tortls.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c
index e467cd5..2cf0332 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
More information about the tor-commits
mailing list