summaryrefslogtreecommitdiff
path: root/ares_ipv6.h
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-12-10 16:14:02 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-12-10 16:14:02 +0000
commit6fed3ff5205ae57a20c073ab48b93860445a18c3 (patch)
treecf579bc983c255b0af43e862356130c1e8243957 /ares_ipv6.h
parent6606c99b86823ba2934c8f826e187b87a851de6b (diff)
downloadc-ares-6fed3ff5205ae57a20c073ab48b93860445a18c3.tar.gz
c-ares-6fed3ff5205ae57a20c073ab48b93860445a18c3.tar.bz2
c-ares-6fed3ff5205ae57a20c073ab48b93860445a18c3.zip
Fix for targets that do have 'struct in6_addr', but which doesn't
define 's6_addr' as a macro.
Diffstat (limited to 'ares_ipv6.h')
-rw-r--r--ares_ipv6.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_ipv6.h b/ares_ipv6.h
index 080c5a2..05d2c54 100644
--- a/ares_ipv6.h
+++ b/ares_ipv6.h
@@ -22,7 +22,7 @@
#define PF_INET6 AF_INET6
#endif
-#ifndef s6_addr
+#if !defined(HAVE_STRUCT_IN6_ADDR) && !defined(s6_addr)
struct in6_addr {
union {
unsigned char _S6_u8[16];
@@ -43,7 +43,7 @@ struct sockaddr_in6
#endif
#ifndef HAVE_STRUCT_ADDRINFO
-struct addrinfo
+struct addrinfo
{
int ai_flags;
int ai_family;