/* AF_INET6 available check */
#include <sys/types.h>
+#ifdef _WIN32
+#include <ws2tcpip.h>
+#else
#include <sys/socket.h>
#include <netinet/in.h>
+#endif
#ifdef AF_INET6
void
foo(struct in6_addr *addr)
[[
/* AF_INET6 available check */
#include <sys/types.h>
+#ifdef _WIN32
+#include <ws2tcpip.h>
+#else
#include <sys/socket.h>
#include <netinet/in.h>
+#endif
#ifdef AF_INET6
void
foo(struct in6_addr *addr)
#define inline __inline
#endif
-#ifdef AF_INET6
+#if defined(AF_INET6) && !defined(HAVE_OS_IPV6_SUPPORT)
#define HAVE_OS_IPV6_SUPPORT
#endif