Commit 8c3df4cc authored by Max Kellermann's avatar Max Kellermann

socket_util: include ws2tcpip.h for getnameinfo()

Windows doesn't have the standard headers sys/socket.h and netdb.h.
parent eb64f654
...@@ -19,8 +19,12 @@ ...@@ -19,8 +19,12 @@
#include "socket_util.h" #include "socket_util.h"
#include "config.h" #include "config.h"
#ifndef G_OS_WIN32
#include <sys/socket.h> #include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
#else /* G_OS_WIN32 */
#include <ws2tcpip.h>
#endif /* G_OS_WIN32 */
#ifdef HAVE_IPV6 #ifdef HAVE_IPV6
#include <string.h> #include <string.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment