• Tom Lane's avatar
    Provide errno-translation wrappers around bind() and listen() on Windows. · d1b7d487
    Tom Lane authored
    I've seen one too many "could not bind IPv4 socket: No error" log entries
    from the Windows buildfarm members.  Per previous discussion, this is
    likely caused by the fact that we're doing nothing to translate
    WSAGetLastError() to errno.  Put in a wrapper layer to do that.
    
    If this works as expected, it should get back-patched, but let's see what
    happens in the buildfarm first.
    
    Discussion: <4065.1452450340@sss.pgh.pa.us>
    d1b7d487
win32.h 12.9 KB