WIN32: map open to _open. Same for lseek, read, write

libnfs-4.0.0-vitalif
sahlberg 2016-09-21 15:47:19 -07:00
parent 8c8e615e54
commit 048e7737d9
1 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,10 @@ struct pollfd {
/* Wrapper macros to call misc. functions win32 is missing */
#define poll(x, y, z) win32_poll(x, y, z)
#define inet_pton(x,y,z) win32_inet_pton(x,y,z)
#define open(x, y, z) _open(x, y, z)
#define lseek(x, y, z) _lseek(x, y, z)
#define read(x, y, z) _read(x, y, z)
#define write(x, y, z) _write(x, y, z)
int getpid(void);
int win32_inet_pton(int af, const char * src, void * dst);
int win32_poll(struct pollfd *fds, unsigned int nfsd, int timeout);