1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-09 17:03:00 +03:00

Work around header misdefines in modern Windows SDK when _WIN32_WINNT is less than 0x0501. Only required for versions 8.2, 8.3 and 8.4., as we defined _WIN32_WINNT as 0x0501 after that.

This commit is contained in:
Andrew Dunstan
2011-01-04 09:41:51 -05:00
parent 5f588805c8
commit 3de618cee8

View File

@@ -383,7 +383,7 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
} }
#endif #endif
#ifdef IPV6_V6ONLY #if defined(IPV6_V6ONLY) && defined(IPPROTO_IPV6)
if (addr->ai_family == AF_INET6) if (addr->ai_family == AF_INET6)
{ {
if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY,