]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Try a little harder to fix the tor-ci-windows builder, or figure out why it is broke
authorNick Mathewson <nickm@torproject.org>
Mon, 29 Jun 2015 20:09:37 +0000 (16:09 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 29 Jun 2015 20:09:37 +0000 (16:09 -0400)
src/common/address.c
src/common/compat.c
src/win32/orconfig.h

index d7d815e40ffc4371d9b6bc21627a28ab8f46e8f1..80f65e916f5f09e24bcd6e0dd48e0a0406e38f9e 100644 (file)
 
 #ifdef _WIN32
 /* For access to structs needed by GetAdaptersAddresses */
-#include <process.h>
+#ifndef WIN32_LEAN_AND_MEAN
+#error "orconfig.h didn't define WIN32_LEAN_AND_MEAN"
+#endif
+#ifndef WINVER
+#error "orconfig.h didn't define WINVER"
+#endif
+#ifndef _WIN32_WINNT
+#error "orconfig.h didn't define _WIN32_WINNT"
+#endif
+#if WINVER < 0x0501
+#error "winver too low"
+#endif
+#if _WIN32_WINNT < 0x0501
+#error "winver too low"
+#endif
 #include <winsock2.h>
+#include <process.h>
 #include <windows.h>
 #include <iphlpapi.h>
 #endif
index 74de9a5d1b4e9bf4bdca55c8ceec34ec059e7df3..7e50729c01d1241cda43a1c74a5468307cb07742 100644 (file)
@@ -27,6 +27,7 @@
 #include "compat.h"
 
 #ifdef _WIN32
+#include <winsock2.h>
 #include <windows.h>
 #include <sys/locking.h>
 #endif
index 9c780e85d7a9126e5646d20326b0c906e7a75a70..af3c5f54171f4d1f7082ca79c6e1cf886ca44614 100644 (file)
 #ifndef STDERR_FILENO
 #define STDERR_FILENO 2
 #endif
+
+#define WINVER 0x0501
+#define _WIN32_WINNT 0x0501
+#define WIN32_LEAN_AND_MEAN 1
+