diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-06-29 16:09:37 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-06-29 16:09:37 -0400 |
commit | 877354a9af4bbc6b2cdb15493c1fcc897eff4899 (patch) | |
tree | ecdc8ec286a96dbf788fae1d2481229678a62f97 /src/common/address.c | |
parent | 753797391f789700ccf7ec9123076405f250cb93 (diff) | |
download | tor-877354a9af4bbc6b2cdb15493c1fcc897eff4899.tar.gz tor-877354a9af4bbc6b2cdb15493c1fcc897eff4899.zip |
Try a little harder to fix the tor-ci-windows builder, or figure out why it is broke
Diffstat (limited to 'src/common/address.c')
-rw-r--r-- | src/common/address.c | 17 |
1 files changed, 16 insertions, 1 deletions
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 <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 |