Provide errno-translation wrappers around bind() and listen() on Windows.
authorTom Lane
Thu, 21 Apr 2016 19:44:18 +0000 (15:44 -0400)
committerTom Lane
Thu, 21 Apr 2016 19:44:18 +0000 (15:44 -0400)
commit8f9518414baccac15bb028312f8db3b98e527c5c
treea2e33a27f992cda50c2f8a07b493fd7bb0474239
parente5882f26b38c6510a22263566548060a3153cc09
Provide errno-translation wrappers around bind() and listen() on Windows.

Fix Windows builds to report something useful rather than "could not bind
IPv4 socket: No error" when bind() fails.

Back-patch of commits d1b7d4877b9a71f4 and 22989a8e34168f57.

Discussion: <4065.1452450340@sss.pgh.pa.us>
src/backend/port/win32/socket.c
src/include/port/win32.h