Commit 2eaeb656 authored by Max Kellermann's avatar Max Kellermann

listen: include winsock headers on WIN32

On Windows, socket declarations reside in winsock.h and ws2tcpip.h. The POSIX headers are not available.
parent e888af98
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment