diff options
author | Max Kellermann <max@duempel.org> | 2009-03-01 01:35:54 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-01 01:35:54 +0100 |
commit | 8c3df4cc83b72dfca20cbf82d4155a1025785dcc (patch) | |
tree | 5ecb2fb0af79aa4141f5302b4e7d3eb0e20af08a /src | |
parent | eb64f6542f71cec3dc33a14186443943b207c3ad (diff) | |
download | mpd-8c3df4cc83b72dfca20cbf82d4155a1025785dcc.tar.gz mpd-8c3df4cc83b72dfca20cbf82d4155a1025785dcc.tar.xz mpd-8c3df4cc83b72dfca20cbf82d4155a1025785dcc.zip |
socket_util: include ws2tcpip.h for getnameinfo()
Windows doesn't have the standard headers sys/socket.h and netdb.h.
Diffstat (limited to 'src')
-rw-r--r-- | src/socket_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socket_util.c b/src/socket_util.c index 31b656326..0fea281f0 100644 --- a/src/socket_util.c +++ b/src/socket_util.c @@ -19,8 +19,12 @@ #include "socket_util.h" #include "config.h" +#ifndef G_OS_WIN32 #include <sys/socket.h> #include <netdb.h> +#else /* G_OS_WIN32 */ +#include <ws2tcpip.h> +#endif /* G_OS_WIN32 */ #ifdef HAVE_IPV6 #include <string.h> |