WIN32: map open to _open. Same for lseek, read, write
parent
8c8e615e54
commit
048e7737d9
|
@ -105,6 +105,10 @@ struct pollfd {
|
||||||
/* Wrapper macros to call misc. functions win32 is missing */
|
/* Wrapper macros to call misc. functions win32 is missing */
|
||||||
#define poll(x, y, z) win32_poll(x, y, z)
|
#define poll(x, y, z) win32_poll(x, y, z)
|
||||||
#define inet_pton(x,y,z) win32_inet_pton(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 getpid(void);
|
||||||
int win32_inet_pton(int af, const char * src, void * dst);
|
int win32_inet_pton(int af, const char * src, void * dst);
|
||||||
int win32_poll(struct pollfd *fds, unsigned int nfsd, int timeout);
|
int win32_poll(struct pollfd *fds, unsigned int nfsd, int timeout);
|
||||||
|
|
Loading…
Reference in New Issue