summaryrefslogtreecommitdiff
path: root/ares.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.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.h')
-rw-r--r--ares.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares.h b/ares.h
index 37ad9b9..6401019 100644
--- a/ares.h
+++ b/ares.h
@@ -245,7 +245,7 @@ int ares_expand_name(const unsigned char *encoded, const unsigned char *abuf,
int ares_expand_string(const unsigned char *encoded, const unsigned char *abuf,
int alen, unsigned char **s, long *enclen);
-#ifndef s6_addr
+#if !defined(HAVE_STRUCT_IN6_ADDR) && !defined(s6_addr)
struct in6_addr {
union {
unsigned char _S6_u8[16];