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:
parent
eb64f6542f
commit
8c3df4cc83
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user