From 8c3df4cc83b72dfca20cbf82d4155a1025785dcc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 1 Mar 2009 01:35:54 +0100 Subject: socket_util: include ws2tcpip.h for getnameinfo() Windows doesn't have the standard headers sys/socket.h and netdb.h. --- src/socket_util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 #include +#else /* G_OS_WIN32 */ +#include +#endif /* G_OS_WIN32 */ #ifdef HAVE_IPV6 #include -- cgit v1.2.3