From a9343dbbc3a0ab256ad55458475c01e266b6b549 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 27 Aug 2016 16:40:43 +0100 Subject: [PATCH] Problem: testutil.hpp fails to build on Windows XP Solution: ifdef is_ipv6_available to always return false if building on Windows XP, as it doesn't support the needed standard libc functions --- tests/testutil.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testutil.hpp b/tests/testutil.hpp index bcbbd045..8ae5271e 100644 --- a/tests/testutil.hpp +++ b/tests/testutil.hpp @@ -331,6 +331,9 @@ msleep (int milliseconds) int is_ipv6_available(void) { +#if defined (ZMQ_HAVE_WINDOWS) && (_WIN32_WINNT < 0x0600) + return 0; +#else int rc, ipv6 = 1; struct sockaddr_in6 test_addr; @@ -373,6 +376,7 @@ is_ipv6_available(void) #endif return ipv6; +#endif // _WIN32_WINNT < 0x0600 } #endif