summaryrefslogtreecommitdiff
path: root/gl/socket_.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/socket_.h')
-rw-r--r--gl/socket_.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gl/socket_.h b/gl/socket_.h
index fbf0483339..8b28b5ed39 100644
--- a/gl/socket_.h
+++ b/gl/socket_.h
@@ -57,4 +57,14 @@
# define SHUT_RDWR SD_BOTH
#endif
+#if defined _WIN32 || defined __WIN32__
+# define ENOTSOCK WSAENOTSOCK
+# define EADDRINUSE WSAEADDRINUSE
+# define ENETRESET WSAENETRESET
+# define ECONNABORTED WSAECONNABORTED
+# define ECONNRESET WSAECONNRESET
+# define ENOTCONN WSAENOTCONN
+# define ESHUTDOWN WSAESHUTDOWN
+#endif
+
#endif /* _SYS_SOCKET_H */