diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index bcccda20..621f1ba2 100644 --- a/code/qcommon/net_ip.c +++ b/code/qcommon/net_ip.c @@ -46,6 +46,13 @@ typedef int socklen_t; typedef unsigned short sa_family_t; # endif +// Undefine existing real error codes and replace +// with our pretend compatibility layer ones +# undef EAGAIN +# undef EADDRNOTAVAIL +# undef EAFNOSUPPORT +# undef ECONNRESET + # define EAGAIN WSAEWOULDBLOCK # define EADDRNOTAVAIL WSAEADDRNOTAVAIL # define EAFNOSUPPORT WSAEAFNOSUPPORT