--- src/compat/compat.h | 6 ++++++ src/openvpn/syshead.h | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/compat/compat.h b/src/compat/compat.h index 021573e..7d91277 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -41,6 +41,12 @@ #include <sys/socket.h> #endif +#ifdef WIN32 +#define sleep(x) Sleep((x)*1000) +#define random rand +#define srandom srand +#endif + #ifndef HAVE_DIRNAME char * dirname(char *str); #endif /* HAVE_DIRNAME */ diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h index 98d6023..db39625 100644 --- a/src/openvpn/syshead.h +++ b/src/openvpn/syshead.h @@ -31,9 +31,6 @@ #ifdef WIN32 #include <windows.h> #include <winsock2.h> -#define sleep(x) Sleep((x)*1000) -#define random rand -#define srandom srand #endif #ifdef HAVE_SYS_TYPES_H -- 1.7.3.4