openwsman: ignore check for ipv6 on windows
Windows compilers always have IPV6 headers available.
In addition the check used Linux headers path so it
has always fallen on Windows.
We enable the check only on non Windows platforms.
@@ -440,6 +440,7 @@ ELSE(HAVE_SA_LEN)
ENDIF(HAVE_SA_LEN)
IF (ENABLE_IPV6)
+ IF(NOT WIN32)
# Check if struct sockaddr_in6 contains sin6
CHECK_STRUCT_HAS_MEMBER("struct sockaddr_in6" sin6_addr netinet/in.h HAVE_IPV6)
@@ -449,6 +450,7 @@ IF (ENABLE_IPV6)
MESSAGE( SEND_ERROR " IPv6 not supported by system, disabling" )
SET(ENABLE_IPV6 0)
ENDIF (HAVE_IPV6)
+ ENDIF(NOT WIN32)
ELSE (ENABLE_IPV6)
SET(ENABLE_IPV6 0)
ENDIF (ENABLE_IPV6)
