From: Nick Mathewson Date: Mon, 29 Jun 2015 20:09:37 +0000 (-0400) Subject: Try a little harder to fix the tor-ci-windows builder, or figure out why it is broke X-Git-Tag: tor-0.2.7.2-alpha~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=877354a9af4bbc6b2cdb15493c1fcc897eff4899;p=thirdparty%2Ftor.git Try a little harder to fix the tor-ci-windows builder, or figure out why it is broke --- diff --git a/src/common/address.c b/src/common/address.c index d7d815e40f..80f65e916f 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -14,8 +14,23 @@ #ifdef _WIN32 /* For access to structs needed by GetAdaptersAddresses */ -#include +#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 +#include #include #include #endif diff --git a/src/common/compat.c b/src/common/compat.c index 74de9a5d1b..7e50729c01 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -27,6 +27,7 @@ #include "compat.h" #ifdef _WIN32 +#include #include #include #endif diff --git a/src/win32/orconfig.h b/src/win32/orconfig.h index 9c780e85d7..af3c5f5417 100644 --- a/src/win32/orconfig.h +++ b/src/win32/orconfig.h @@ -255,3 +255,8 @@ #ifndef STDERR_FILENO #define STDERR_FILENO 2 #endif + +#define WINVER 0x0501 +#define _WIN32_WINNT 0x0501 +#define WIN32_LEAN_AND_MEAN 1 +