summaryrefslogtreecommitdiff
path: root/ares_ipv6.h
diff options
context:
space:
mode:
authorDominick Meglio <dcm5151@esu.edu>2005-06-19 16:58:40 +0000
committerDominick Meglio <dcm5151@esu.edu>2005-06-19 16:58:40 +0000
commitebcf14a69b2efd96afd93bf0c6926dcb2c363a53 (patch)
treee96c406f993c080eaa059f49b2d0033f9393530d /ares_ipv6.h
parent01118be8aed37c8160acf34af58dd9b161fbc86b (diff)
downloadc-ares-ebcf14a69b2efd96afd93bf0c6926dcb2c363a53.tar.gz
c-ares-ebcf14a69b2efd96afd93bf0c6926dcb2c363a53.tar.bz2
c-ares-ebcf14a69b2efd96afd93bf0c6926dcb2c363a53.zip
Added some checks for the addrinfo structure.
Diffstat (limited to 'ares_ipv6.h')
-rw-r--r--ares_ipv6.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ares_ipv6.h b/ares_ipv6.h
index 79a37c4..a6d980f 100644
--- a/ares_ipv6.h
+++ b/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 */