]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Bump _WIN32_WINNT to 0x0501 throughout the code
authorNick Mathewson <nickm@torproject.org>
Mon, 14 May 2012 17:46:37 +0000 (13:46 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 14 May 2012 17:46:37 +0000 (13:46 -0400)
This tells the windows headers to give us definitions that didn't
exist before XP -- like the ones that we need for IPv6 support.

See bug #5861.  We didn't run into this issue with mingw, since
mingw doesn't respect _WIN32_WINNT as well as it should for some of
its definitions.

changes/bug5861 [new file with mode: 0644]
configure.in
src/common/aes.c
src/common/compat.h
src/common/crypto.c
src/common/tortls.c
src/or/or.h

diff --git a/changes/bug5861 b/changes/bug5861
new file mode 100644 (file)
index 0000000..74a1dfb
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Set _WIN32_WINNT to 0x0501 consistently throughout the code, so
+      that IPv6 stuff will compile on MSVC, and compilation issues
+      will be easier to track down. Fix for bug 5861.
index 92b7acbebaebbe273c4c7e415f1e16cd81e23ee2..43c9bb2a5e6412fc665286706bcce7dd532498af 100644 (file)
@@ -796,7 +796,7 @@ AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, sa_family_t], , ,
 #include <sys/socket.h>
 #endif
 #ifdef _WIN32
-#define _WIN32_WINNT 0x400
+#define _WIN32_WINNT 0x0501
 #define WIN32_LEAN_AND_MEAN
 #if defined(_MSC_VER) && (_MSC_VER < 1300)
 #include <winsock.h>
@@ -820,7 +820,7 @@ AC_CHECK_MEMBERS([struct in6_addr.s6_addr32, struct in6_addr.s6_addr16, struct s
 #include <sys/socket.h>
 #endif
 #ifdef _WIN32
-#define _WIN32_WINNT 0x400
+#define _WIN32_WINNT 0x0501
 #define WIN32_LEAN_AND_MEAN
 #if defined(_MSC_VER) && (_MSC_VER < 1300)
 #include <winsock.h>
index 692f1bca92fc318ca4fab9cc884d601e5b5e54de..1cb6b86a82768225e3839cb9452ee4b32ca14e97 100644 (file)
@@ -13,7 +13,7 @@
 
 #ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include <winsock.h>"*/
  #ifndef _WIN32_WINNT
- #define _WIN32_WINNT 0x400
+ #define _WIN32_WINNT 0x0501
  #endif
  #define WIN32_LEAN_AND_MEAN
  #if defined(_MSC_VER) && (_MSC_VER < 1300)
index f17aa0524e3decd8e9306bbaa460fc18b37b27ac..b0ef63badfcb8be757d4f81a3483d3a0533e1ff1 100644 (file)
@@ -10,7 +10,7 @@
 #include "torint.h"
 #ifdef _WIN32
 #ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x400
+#define _WIN32_WINNT 0x0501
 #endif
 #define WIN32_LEAN_AND_MEAN
 #if defined(_MSC_VER) && (_MSC_VER < 1300)
index 8b1c9a658e7afad2e9cdbc34c186dcecf5bb81b1..f82598fab2134f627bcfb0090b988a0ec1350484 100644 (file)
@@ -14,7 +14,7 @@
 
 #ifdef _WIN32
 #ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x400
+#define _WIN32_WINNT 0x0501
 #endif
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
index 180efa61dbfcaebd0b693abbba5cf686c5c30b31..1120f3e8beb96a56c167876292a34d989e2b7f80 100644 (file)
@@ -23,7 +23,7 @@
 #include <assert.h>
 #ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include <winsock.h>"*/
  #ifndef _WIN32_WINNT
- #define _WIN32_WINNT 0x400
+ #define _WIN32_WINNT 0x0501
  #endif
  #define WIN32_LEAN_AND_MEAN
  #if defined(_MSC_VER) && (_MSC_VER < 1300)
index ad0ac6d021c884195d8ae5403365a6c3bb4dc2d2..76681c9eea858c79276a0be07eedca7feef59132 100644 (file)
@@ -24,7 +24,7 @@
 
 #ifdef _WIN32
 #ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x400
+#define _WIN32_WINNT 0x0501
 #endif
 #define WIN32_LEAN_AND_MEAN
 #endif