Changelog for the c-ares project
+* June 19
+
+- Added some checks for the addrinfo structure.
+
* June 2
- William Ahern:
value. If q is not greater than *s then it's equal and *s is always
allocated with at least one byte.
-
* May 16
- Added ares_getnameinfo which mimics the getnameinfo API (another feature
};
#endif
+#ifndef HAVE_STRUCT_ADDRINFO
+struct addrinfo
+{
+ int ai_flags;
+ int ai_family;
+ int ai_socktype;
+ int ai_protocol;
+ size_t ai_addrlen;
+ char *ai_cannonname;
+ struct sockaddr *ai_addr;
+ struct addrinfo *ai_next;
+};
+#endif
+
#ifndef NS_IN6ADDRSZ
#if SIZEOF_STRUCT_IN6_ADDR == 0
/* We cannot have it set to zero, so we pick a fixed value here */
)\r
fi\r
\r
+dnl check for the addrinfo structure\r
+CARES_CHECK_STRUCT(\r
+ [\r
+#ifdef HAVE_SYS_TYPES_H\r
+#include <sys/types.h>\r
+#endif\r
+#ifdef HAVE_WINSOCK_H\r
+#include <winsock.h>\r
+#endif\r
+#ifdef HAVE_NETINET_IN_H\r
+#include <netinet/in.h>\r
+#endif\r
+ ], [addrinfo], \r
+ AC_DEFINE_UNQUOTED(HAVE_STRUCT_ADDRINFO,1,\r
+ [Define to 1 if you have struct addrinfo.])\r
+)\r
+\r
dnl check for inet_pton\r
AC_CHECK_FUNCS(inet_pton)\r
dnl Some systems have it, but not IPv6\r