diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2011-01-04 09:41:51 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2011-01-04 09:41:51 -0500 |
commit | 3de618cee89901306649835f8fa7c5ab07b8ee9f (patch) | |
tree | b84a7888a54263611dae38669ee224d7c53f4233 /src | |
parent | 5f588805c882883fdb26f43ddb10ac5088517e72 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/libpq/pqcomm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index a4a3b2266a9..cbccf348e71 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -383,7 +383,7 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber, } #endif -#ifdef IPV6_V6ONLY +#if defined(IPV6_V6ONLY) && defined(IPPROTO_IPV6) if (addr->ai_family == AF_INET6) { if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, |