aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-11-09 00:07:32 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-11-09 00:07:32 +0100
commitd08ee3c83d6bd416aef62ff844c98e47c4682429 (patch)
treebed07acb1262afe780d2f9e7fad305f407dfb75f
parentcf7008670bc0dac29e3abbc91a39b45ef4174419 (diff)
cmake: fix Windows build with IPv6 support
Patch-by: "Z98"
-rw-r--r--CMake/Platforms/WindowsCache.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMake/Platforms/WindowsCache.cmake b/CMake/Platforms/WindowsCache.cmake
index 49161f86d..3533a5413 100644
--- a/CMake/Platforms/WindowsCache.cmake
+++ b/CMake/Platforms/WindowsCache.cmake
@@ -108,7 +108,11 @@ if(NOT UNIX)
set(HAVE_IN_ADDR_T 0)
set(HAVE_INET_NTOA_R_DECL 0)
set(HAVE_INET_NTOA_R_DECL_REENTRANT 0)
- set(HAVE_GETADDRINFO 0)
+ if(ENABLE_IPV6)
+ set(HAVE_GETADDRINFO 1)
+ else()
+ set(HAVE_GETADDRINFO 0)
+ endif()
set(STDC_HEADERS 1)
set(RETSIGTYPE_TEST 1)