From 7215a917f27687ecde569db7298bbdd8449a6e81 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 15 May 2012 21:49:29 +1000 Subject: [PATCH] win32: create a compatibility macro for sleep() --- win32/win32_compat.h | 1 + 1 file changed, 1 insertion(+) 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);