1
0
Fork 0

Fix: Fixed getaddrinfo detection for windows via ws2tcpip.h

This commit is contained in:
Stephan Jauernick 2022-03-12 21:28:15 +01:00 committed by Philipp Schafft
parent 2b39d7f178
commit 617d219021
2 changed files with 11 additions and 1 deletions

View File

@ -52,10 +52,16 @@
#include <arpa/inet.h>
#include <sys/time.h>
#include <netdb.h>
#else
#endif
#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
#include "sock.h"
#include "resolver.h"

View File

@ -34,6 +34,10 @@
#include <winsock2.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#elif _WIN32