diff options
-rw-r--r-- | sockcompat.c | 1 | ||||
-rw-r--r-- | sockcompat.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/sockcompat.c b/sockcompat.c index ca1bacc..f99d14b 100644 --- a/sockcompat.c +++ b/sockcompat.c @@ -32,7 +32,6 @@ #include "sockcompat.h" #ifdef _WIN32 -#include <errno.h> static int _wsaErrorToErrno(int err) { switch (err) { case WSAEWOULDBLOCK: diff --git a/sockcompat.h b/sockcompat.h index 9249d5e..85810e8 100644 --- a/sockcompat.h +++ b/sockcompat.h @@ -49,6 +49,7 @@ #include <winsock2.h> #include <ws2tcpip.h> #include <stddef.h> +#include <errno.h> #ifdef _MSC_VER typedef long long ssize_t; |