diff --git a/ixwebsocket/IXNetSystem.cpp b/ixwebsocket/IXNetSystem.cpp index 7b2a8541..c8bb7b17 100644 --- a/ixwebsocket/IXNetSystem.cpp +++ b/ixwebsocket/IXNetSystem.cpp @@ -8,6 +8,12 @@ #include #include #ifdef _WIN32 +#ifndef EAFNOSUPPORT + #define EAFNOSUPPORT 102 +#endif +#ifndef ENOSPC + #define ENOSPC 28 +#endif #include #endif diff --git a/ixwebsocket/IXSocket.h b/ixwebsocket/IXSocket.h index 1f4272d2..d1fa9691 100644 --- a/ixwebsocket/IXSocket.h +++ b/ixwebsocket/IXSocket.h @@ -14,8 +14,10 @@ #ifdef _WIN32 #include +#ifdef _MSC_VER typedef SSIZE_T ssize_t; #endif +#endif #include "IXCancellationRequest.h" #include "IXProgressCallback.h" diff --git a/ixwebsocket/IXUdpSocket.h b/ixwebsocket/IXUdpSocket.h index 35f8fec4..9f54daf9 100644 --- a/ixwebsocket/IXUdpSocket.h +++ b/ixwebsocket/IXUdpSocket.h @@ -12,8 +12,10 @@ #ifdef _WIN32 #include +#ifdef _MSC_VER typedef SSIZE_T ssize_t; #endif +#endif #include "IXNetSystem.h"