mirror of
https://github.com/curl/curl.git
synced 2026-08-26 14:43:32 +03:00
configure: detect IPv6 support on Windows
This patch was "nicked" from the MINGW-packages project by Daniel.
9253d0bf58
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
bd431eef04
commit
c208c783f5
2 changed files with 20 additions and 1 deletions
|
|
@ -44,6 +44,10 @@ curl_includes_arpa_inet="\
|
|||
#ifdef HAVE_ARPA_INET_H
|
||||
# include <arpa/inet.h>
|
||||
#endif
|
||||
#ifdef HAVE_WINSOCK2_H
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#endif
|
||||
/* includes end */"
|
||||
AC_CHECK_HEADERS(
|
||||
sys/types.h sys/socket.h netinet/in.h arpa/inet.h,
|
||||
|
|
@ -2098,6 +2102,12 @@ AC_DEFUN([CURL_CHECK_FUNC_GETADDRINFO], [
|
|||
struct addrinfo *ai = 0;
|
||||
int error;
|
||||
|
||||
#ifdef HAVE_WINSOCK2_H
|
||||
WSADATA wsa;
|
||||
if (WSAStartup(MAKEWORD(2,2), &wsa))
|
||||
exit(2);
|
||||
#endif
|
||||
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_flags = AI_NUMERICHOST;
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue