Added some checks for the addrinfo structure.

This commit is contained in:
Dominick Meglio
2005-06-19 16:58:40 +00:00
parent 01118be8ae
commit ebcf14a69b
3 changed files with 35 additions and 1 deletions
+17
View File
@@ -193,6 +193,23 @@ CARES_CHECK_STRUCT_MEMBER(
)
fi
dnl check for the addrinfo structure
CARES_CHECK_STRUCT(
[
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_WINSOCK_H
#include <winsock.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
], [addrinfo],
AC_DEFINE_UNQUOTED(HAVE_STRUCT_ADDRINFO,1,
[Define to 1 if you have struct addrinfo.])
)
dnl check for inet_pton
AC_CHECK_FUNCS(inet_pton)
dnl Some systems have it, but not IPv6