diff --git a/win32/win32_compat.h b/win32/win32_compat.h index 2b13665..0119433 100644 --- a/win32/win32_compat.h +++ b/win32/win32_compat.h @@ -41,6 +41,7 @@ typedef int socklen_t; /* 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 sleep(x) Sleep(x * 1000) int win32_inet_pton(int af, const char * src, void * dst); int win32_poll(struct pollfd *fds, unsigned int nfsd, int timeout); int win32_gettimeofday(struct timeval *tv, struct timezone *tz);