diff options
Diffstat (limited to 'third_party/libevent/test/regress_dns.c')
-rw-r--r-- | third_party/libevent/test/regress_dns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/libevent/test/regress_dns.c b/third_party/libevent/test/regress_dns.c index 8191192..129cdad 100644 --- a/third_party/libevent/test/regress_dns.c +++ b/third_party/libevent/test/regress_dns.c @@ -42,7 +42,7 @@ #include <sys/queue.h> #ifndef WIN32 #include <sys/socket.h> -#include <sys/signal.h> +#include <signal.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> @@ -89,7 +89,7 @@ dns_gethostbyname_cb(int result, char type, int count, int ttl, switch (type) { case DNS_IPv6_AAAA: { -#if defined(HAVE_STRUCT_IN6_ADDR) && defined(HAVE_INET_NTOP) +#if defined(HAVE_STRUCT_IN6_ADDR) && defined(HAVE_INET_NTOP) && defined(INET6_ADDRSTRLEN) struct in6_addr *in6_addrs = addresses; char buf[INET6_ADDRSTRLEN+1]; int i; @@ -258,7 +258,7 @@ dns_server_gethostbyname_cb(int result, char type, int count, int ttl, break; } case DNS_IPv6_AAAA: { -#if defined (HAVE_STRUCT_IN6_ADDR) && defined(HAVE_INET_NTOP) +#if defined (HAVE_STRUCT_IN6_ADDR) && defined(HAVE_INET_NTOP) && defined(INET6_ADDRSTRLEN) struct in6_addr *in6_addrs = addresses; char buf[INET6_ADDRSTRLEN+1]; if (memcmp(&in6_addrs[0].s6_addr, "abcdefghijklmnop", 16) |