summaryrefslogtreecommitdiffstats
path: root/polyp/winsock.h
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/winsock.h')
-rw-r--r--polyp/winsock.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/polyp/winsock.h b/polyp/winsock.h
new file mode 100644
index 00000000..b1e0f7d4
--- /dev/null
+++ b/polyp/winsock.h
@@ -0,0 +1,23 @@
+#ifndef foowinsockhfoo
+#define foowinsockhfoo
+
+#ifdef HAVE_WINSOCK2_H
+#include <winsock2.h>
+
+#define ESHUTDOWN WSAESHUTDOWN
+#define ECONNRESET WSAECONNRESET
+#define ECONNABORTED WSAECONNABORTED
+#define ENETRESET WSAENETRESET
+#define EINPROGRESS WSAEINPROGRESS
+#define EAFNOSUPPORT WSAEAFNOSUPPORT
+#define ETIMEDOUT WSAETIMEDOUT
+#define ECONNREFUSED WSAECONNREFUSED
+#define EHOSTUNREACH WSAEHOSTUNREACH
+
+#endif
+
+#ifdef HAVE_WS2TCPIP_H
+#include <ws2tcpip.h>
+#endif
+
+#endif