aboutsummaryrefslogtreecommitdiff
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
commitbd99a7dc8c977c397003eed51d3ccb5648447d15 (patch)
treedf49c12e4fb69248eccda15b3a6647d789a4fd71
parentdb2d52a792cda403efafc036baa81af2208e010e (diff)
Fix for targets that do have 'struct in6_addr', but which doesn't
define 's6_addr' as a macro.
-rw-r--r--ares/ares.h2
-rw-r--r--ares/ares_ipv6.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/ares/ares.h b/ares/ares.h
index 37ad9b95c..640101990 100644
--- a/ares/ares.h
+++ b/ares/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];
diff --git a/ares/ares_ipv6.h b/ares/ares_ipv6.h
index 080c5a20e..05d2c54b4 100644
--- a/ares/ares_ipv6.h
+++ b/ares/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;