2 * src/interfaces/libpq/win32.h
4 #ifndef __win32_h_included
5 #define __win32_h_included
8 * Some compatibility functions
11 /* open provided elsewhere */
12 #define close(a) _close(a)
13 #define read(a,b,c) _read(a,b,c)
14 #define write(a,b,c) _write(a,b,c)
16 #undef EAGAIN /* doesn't apply on sockets */
19 * support for handling Windows Socket errors
21 extern const char *winsock_strerror(int err
, char *strerrbuf
, size_t buflen
);