diff --git a/compat-win32.c b/compat-win32.c index 0b4bdc5..8e3643a 100644 --- a/compat-win32.c +++ b/compat-win32.c @@ -2,6 +2,7 @@ #include #include "compat.h" #include +#include "errno.h" unsigned int sleep(unsigned int seconds) { diff --git a/compat.h b/compat.h index eee8d53..acc04b8 100644 --- a/compat.h +++ b/compat.h @@ -5,9 +5,6 @@ unsigned int sleep(unsigned int seconds); char *compat_strerror(int errnum); //const char *inet_ntop(int af, void *src, const char *dst, socklen_t cnt); -#define INET_ADDRSTRLEN 16 -#define ETIMEDOUT 110 -#define ENOTCONN 107 #else #define compat_strerror strerror #endif