Commit 81fd4044 authored by Constantin Rack's avatar Constantin Rack Committed by GitHub

Merge pull request #2092 from bluca/xp_testutils_ipv6

Problem: testutil.hpp fails to build on Windows XP
parents 5d1c75f0 a9343dbb
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment