diff options
-rw-r--r-- | ares.h | 2 | ||||
-rw-r--r-- | ares_ipv6.h | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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_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; |