mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
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
This commit is contained in:
parent
5d1c75f033
commit
a9343dbbc3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user