From 328fe0994651f660fefa208f1767572955cf6946 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 27 Aug 2016 16:40:43 +0100 Subject: [PATCH 1/2] 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 2b352054..16055ce9 100644 --- a/tests/testutil.hpp +++ b/tests/testutil.hpp @@ -308,6 +308,9 @@ void 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; @@ -350,6 +353,7 @@ is_ipv6_available(void) #endif return ipv6; +#endif // _WIN32_WINNT < 0x0600 } #endif From 22680094ca76cd1fa570d4009e57aa4d7e602348 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 27 Aug 2016 17:15:58 +0100 Subject: [PATCH 2/2] Update NEWS for #2091 --- NEWS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS b/NEWS index ca23b488..d42d29f4 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ * Fixed #2051 - getifaddrs can fail with ECONNREFUSED +* Fixed #2091 - testutil.hpp fails to build on Windows XP + 0MQ version 4.1.5 stable, released on 2016/06/17 ================================================