8000 Work around header misdefines in modern Windows SDK when _WIN32_WINNT… · machack666/postgres@3be03ba · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3be03ba

Browse files
committed
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.
1 parent 2892fd5 commit 3be03ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
361361
}
362362
#endif
363363

364-
#ifdef IPV6_V6ONLY
364+
#if defined(IPV6_V6ONLY) && defined(IPPROTO_IPV6)
365365
if (addr->ai_family == AF_INET6)
366366
{
367367
if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY,

0 commit comments

Comments
 (0)
0