From 336154e7297e28abc892e8077132394e59adc420 Mon Sep 17 00:00:00 2001 From: Dominick Meglio Date: Sun, 19 Jun 2005 16:58:40 +0000 Subject: Added some checks for the addrinfo structure. --- ares/ares_ipv6.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ares/ares_ipv6.h') diff --git a/ares/ares_ipv6.h b/ares/ares_ipv6.h index 79a37c401..a6d980fe7 100644 --- a/ares/ares_ipv6.h +++ b/ares/ares_ipv6.h @@ -39,6 +39,20 @@ struct sockaddr_in6 }; #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 */ -- cgit v1.2.3