mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
fixed the check for the addrinfo struct
This commit is contained in:
parent
6af5ea38ce
commit
45e26b5c02
@ -66,6 +66,7 @@ AC_CHECK_HEADERS(
|
|||||||
sys/select.h \
|
sys/select.h \
|
||||||
sys/socket.h \
|
sys/socket.h \
|
||||||
sys/ioctl.h \
|
sys/ioctl.h \
|
||||||
|
netdb.h \
|
||||||
winsock.h \
|
winsock.h \
|
||||||
netinet/in.h \
|
netinet/in.h \
|
||||||
net/if.h \
|
net/if.h \
|
||||||
@ -195,7 +196,9 @@ AC_CHECK_MEMBER(struct sockaddr_in6.sin6_scope_id,
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dnl check for the addrinfo structure
|
dnl check for the addrinfo structure
|
||||||
CARES_CHECK_STRUCT(
|
AC_CHECK_MEMBER(struct addrinfo.ai_flags,
|
||||||
|
AC_DEFINE_UNQUOTED(HAVE_STRUCT_ADDRINFO,1,
|
||||||
|
[Define to 1 if you have struct addrinfo.]),,
|
||||||
[
|
[
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -206,9 +209,13 @@ CARES_CHECK_STRUCT(
|
|||||||
#ifdef HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
], [addrinfo],
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
AC_DEFINE_UNQUOTED(HAVE_STRUCT_ADDRINFO,1,
|
#include <sys/socket.h>
|
||||||
[Define to 1 if you have struct addrinfo.])
|
#endif
|
||||||
|
#ifdef HAVE_NETDB_H
|
||||||
|
#include <netdb.h>
|
||||||
|
#endif
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
dnl check for inet_pton
|
dnl check for inet_pton
|
||||||
|
Loading…
x
Reference in New Issue
Block a user