From 207bd3c76454cdc540a619b460c04e69bc3b0ca1 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 1 Aug 2009 12:58:39 +0200 Subject: [PATCH] Add header to src/dns.cc to compile on FreeBSD. --- src/dns.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dns.cc b/src/dns.cc index 465a5bb18c6..eb75186eb39 100644 --- a/src/dns.cc +++ b/src/dns.cc @@ -5,6 +5,7 @@ #include /* exit() */ #include #include +#include #include #include @@ -100,7 +101,7 @@ AfterResolveA4 (struct dns_ctx *ctx, struct dns_rr_a4 *result, void *data) HandleScope loop_scope; char ip[INET_ADDRSTRLEN]; - inet_ntop(AF_INET, &(result->dnsa4_addr[i]), ip, INET_ADDRSTRLEN); + dns_ntop(AF_INET, &(result->dnsa4_addr[i]), ip, INET_ADDRSTRLEN); Local address = String::New(ip); addresses->Set(Integer::New(i), address); @@ -136,7 +137,7 @@ AfterResolveA6 (struct dns_ctx *ctx, struct dns_rr_a6 *result, void *data) HandleScope loop_scope; char ip[INET6_ADDRSTRLEN]; - inet_ntop(AF_INET6, &(result->dnsa6_addr[i]), ip, INET6_ADDRSTRLEN); + dns_ntop(AF_INET6, &(result->dnsa6_addr[i]), ip, INET6_ADDRSTRLEN); Local address = String::New(ip); addresses->Set(Integer::New(i), address);