Index: third_party/libevent/test/regress_dns.c |
diff --git a/third_party/libevent/test/regress_dns.c b/third_party/libevent/test/regress_dns.c |
index 8191192cbc2198511842f4c1b0142a002672e8e9..129cdad498f339a6a3f30ace628d097f9197451e 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) |