aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/listen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/listen.c b/src/listen.c
index 31067ce5a..240539197 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -26,9 +26,15 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
+
+#ifdef WIN32
+#include <ws2tcpip.h>
+#include <winsock.h>
+#else
#include <netinet/in.h>
#include <sys/un.h>
#include <netdb.h>
+#endif
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "listen"