summaryrefslogtreecommitdiffstats
path: root/polyp/socket-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/socket-client.c')
-rw-r--r--polyp/socket-client.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/polyp/socket-client.c b/polyp/socket-client.c
index 0d712fa3..6d8cb2ab 100644
--- a/polyp/socket-client.c
+++ b/polyp/socket-client.c
@@ -48,6 +48,15 @@
#include <netdb.h>
#endif
+#ifdef HAVE_WINSOCK2_H
+#include <winsock2.h>
+#define EINPROGRESS WSAEINPROGRESS
+#define ETIMEDOUT WSAETIMEDOUT
+#endif
+#ifdef HAVE_WS2TCPIP_H
+#include <ws2tcpip.h>
+#endif
+
#ifdef HAVE_LIBASYNCNS
#include <asyncns.h>
#endif