diff options
-rw-r--r-- | src/network/core/os_abstraction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h index 5b789d5cc..1bdf942c6 100644 --- a/src/network/core/os_abstraction.h +++ b/src/network/core/os_abstraction.h @@ -22,11 +22,13 @@ /* Windows stuff */ #if defined(WIN32) || defined(WIN64) +#include <errno.h> #include <winsock2.h> #include <ws2tcpip.h> #include <windows.h> #define GET_LAST_ERROR() WSAGetLastError() +#undef EWOULDBLOCK #define EWOULDBLOCK WSAEWOULDBLOCK /* Windows has some different names for some types */ typedef unsigned long in_addr_t; |