socket_util: include ws2tcpip.h for getnameinfo()

Windows doesn't have the standard headers sys/socket.h and netdb.h.
This commit is contained in:
Max Kellermann 2009-03-01 01:35:54 +01:00
parent eb64f6542f
commit 8c3df4cc83

View File

@ -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>