define 's6_addr' as a macro.
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];
#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];
#endif
#ifndef HAVE_STRUCT_ADDRINFO
-struct addrinfo
+struct addrinfo
{
int ai_flags;
int ai_family;