]> granicus.if.org Git - curl/commitdiff
cmake: IPv6 : disable Unix header check on Windows platform
authorSergei Nikulov <sergey.nikulov@gmail.com>
Thu, 3 Sep 2015 12:20:32 +0000 (15:20 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 8 Sep 2015 13:49:15 +0000 (15:49 +0200)
Closes #409

CMakeLists.txt

index 2206a6b911ca9d941e2f9869789b4ba93d02ef85..5b01ad18064375721ec718faa095f75b640f83e5 100644 (file)
@@ -186,7 +186,7 @@ option(DISABLED_THREADSAFE "Set to explicitly specify we don't want to use threa
 mark_as_advanced(DISABLED_THREADSAFE)
 option(ENABLE_IPV6 "Define if you want to enable IPv6 support" ON)
 mark_as_advanced(ENABLE_IPV6)
-if(ENABLE_IPV6)
+if(ENABLE_IPV6 AND NOT WIN32)
   include(CheckStructHasMember)
   check_struct_has_member("struct sockaddr_in6" sin6_addr "netinet/in.h"
                           HAVE_SOCKADDR_IN6_SIN6_ADDR)