From d08ee3c83d6bd416aef62ff844c98e47c4682429 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 9 Nov 2013 00:07:32 +0100 Subject: cmake: fix Windows build with IPv6 support Patch-by: "Z98" --- CMake/Platforms/WindowsCache.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3