diff options
author | Max Kellermann <max@duempel.org> | 2008-12-30 19:07:10 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-30 19:07:10 +0100 |
commit | 2eaeb65666c00f02fbdf19ad30d4e0ea9fc69d4d (patch) | |
tree | e3ba76ed1cbcafaee10abb87cf03c665c5f63041 /src | |
parent | e888af98a2c924a6f668cbda735e6a58593434cb (diff) | |
download | mpd-2eaeb65666c00f02fbdf19ad30d4e0ea9fc69d4d.tar.gz mpd-2eaeb65666c00f02fbdf19ad30d4e0ea9fc69d4d.tar.xz mpd-2eaeb65666c00f02fbdf19ad30d4e0ea9fc69d4d.zip |
listen: include winsock headers on WIN32
On Windows, socket declarations reside in winsock.h and ws2tcpip.h.
The POSIX headers are not available.
Diffstat (limited to '')
-rw-r--r-- | src/listen.c | 6 |
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" |