Move routines to manipulate WAL into PostgreSQL::Test::Cluster
[pgsql.git] / src / interfaces / libpq / win32.h
blobfcce1e0544a7c3512145f96b9223e83580038d8d
1 /*
2 * src/interfaces/libpq/win32.h
3 */
4 #ifndef __win32_h_included
5 #define __win32_h_included
7 /*
8 * Some compatibility functions
9 */
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);
23 #endif