aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.c10
-rw-r--r--src/client.h2
2 files changed, 9 insertions, 3 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"
diff --git a/src/client.h b/src/client.h
index 196afe7fa..e58b629bd 100644
--- a/src/client.h
+++ b/src/client.h
@@ -23,9 +23,9 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdarg.h>
-#include <sys/socket.h>
struct client;
+struct sockaddr;
void client_manager_init(void);
void client_manager_deinit(void);