diff --git a/net/sock.c b/net/sock.c index 4e776c9..4b7a21c 100644 --- a/net/sock.c +++ b/net/sock.c @@ -41,7 +41,9 @@ #define vsnprintf _vsnprintf #define EINPROGRESS WSAEINPROGRESS #define ENOTSOCK WSAENOTSOCK -#define EWOULDBLOCK WSAEWOULDBLOCK +#define EWOULDBLOCK WSAEWOULDBLOCK +#define EALREADY WSAEALREADY +#define socklen_t int #endif #include "sock.h" diff --git a/net/sock.h b/net/sock.h index 9b79407..470934b 100644 --- a/net/sock.h +++ b/net/sock.h @@ -22,11 +22,14 @@ #ifndef __SOCK_H #define __SOCK_H -#include #ifdef _WIN32 #include -#endif +#else +#include +#endif + +#include #ifdef HAVE_SYS_UIO_H #include