There was an error while loading. Please reload this page.
1 parent d89925f commit 30c5cc0Copy full SHA for 30c5cc0
1 file changed
code/qcommon/net_ip.c
@@ -46,10 +46,22 @@ typedef int socklen_t;
46
typedef unsigned short sa_family_t;
47
# endif
48
49
-# define EAGAIN WSAEWOULDBLOCK
50
-# define EADDRNOTAVAIL WSAEADDRNOTAVAIL
51
-# define EAFNOSUPPORT WSAEAFNOSUPPORT
52
-# define ECONNRESET WSAECONNRESET
+# #ifndef EAGAIN
+# define EAGAIN WSAEWOULDBLOCK
+# #endif
+
53
+# #ifndef EADDRNOTAVAIL
54
+# define EADDRNOTAVAIL WSAEADDRNOTAVAIL
55
56
57
+# #ifndef EAFNOSUPPORT
58
+# define EAFNOSUPPORT WSAEAFNOSUPPORT
59
60
61
+# #ifndef ECONNRESET
62
+# define ECONNRESET WSAECONNRESET
63
64
65
typedef u_long ioctlarg_t;
66
# define socketError WSAGetLastError( )
67
0 commit comments