From 45e26b5c02b66a13a53e0b8ee68f2e25872bc824 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 21 Sep 2005 09:01:44 +0000 Subject: fixed the check for the addrinfo struct --- ares/configure.ac | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'ares') diff --git a/ares/configure.ac b/ares/configure.ac index a04205cda..16db0f24e 100644 --- a/ares/configure.ac +++ b/ares/configure.ac @@ -66,6 +66,7 @@ AC_CHECK_HEADERS( sys/select.h \ sys/socket.h \ sys/ioctl.h \ + netdb.h \ winsock.h \ netinet/in.h \ net/if.h \ @@ -195,7 +196,9 @@ AC_CHECK_MEMBER(struct sockaddr_in6.sin6_scope_id, fi 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 #include @@ -206,9 +209,13 @@ CARES_CHECK_STRUCT( #ifdef HAVE_NETINET_IN_H #include #endif - ], [addrinfo], - AC_DEFINE_UNQUOTED(HAVE_STRUCT_ADDRINFO,1, - [Define to 1 if you have struct addrinfo.]) +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NETDB_H +#include +#endif + ] ) dnl check for inet_pton -- cgit v1.2.3