aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c
index 921b08503..c5d7d75bc 100644
--- a/src/client.c
+++ b/src/client.c
@@ -31,11 +31,17 @@
#include <glib.h>
#include <assert.h>
+#include <unistd.h>
+#include <string.h>
+
+#ifdef WIN32
+#include <ws2tcpip.h>
+#include <winsock.h>
+#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <unistd.h>
-#include <string.h>
+#endif
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "client"