summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/winsock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/winsock.h')
-rw-r--r--src/pulsecore/winsock.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/pulsecore/winsock.h b/src/pulsecore/winsock.h
new file mode 100644
index 00000000..ae868b38
--- /dev/null
+++ b/src/pulsecore/winsock.h
@@ -0,0 +1,24 @@
+#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
+#define EWOULDBLOCK WSAEWOULDBLOCK
+
+#endif
+
+#ifdef HAVE_WS2TCPIP_H
+#include <ws2tcpip.h>
+#endif
+
+#endif