diff --git a/src/xpdev/sockwrap.h b/src/xpdev/sockwrap.h index 08ac020e9dd5f09b79f3a8b1a5a55f3596654603..f94ee97b647aa38b88b238bbca9794822a2eaf47 100644 --- a/src/xpdev/sockwrap.h +++ b/src/xpdev/sockwrap.h @@ -98,13 +98,27 @@ typedef struct { #undef EWOULDBLOCK #define EWOULDBLOCK (WSAEWOULDBLOCK-WSABASEERR) +#ifndef EPROTOTYPE #define EPROTOTYPE (WSAEPROTOTYPE-WSABASEERR) +#endif +#ifndef ENOPROTOOPT #define ENOPROTOOPT (WSAENOPROTOOPT-WSABASEERR) +#endif +#ifndef EPROTONOSUPPORT #define EPROTONOSUPPORT (WSAEPROTONOSUPPORT-WSABASEERR) +#endif +#ifndef ESOCKTNOSUPPORT #define ESOCKTNOSUPPORT (WSAESOCKTNOSUPPORT-WSABASEERR) +#endif +#ifndef EOPNOTSUPP #define EOPNOTSUPP (WSAEOPNOTSUPP-WSABASEERR) +#endif +#ifndef EPFNOSUPPORT #define EPFNOSUPPORT (WSAEPFNOSUPPORT-WSABASEERR) +#endif +#ifndef EAFNOSUPPORT #define EAFNOSUPPORT (WSAEAFNOSUPPORT-WSABASEERR) +#endif #undef EADDRINUSE #define EADDRINUSE (WSAEADDRINUSE-WSABASEERR)