From 17e6f35cfbfa7a73e986fcd11617db12898d740f Mon Sep 17 00:00:00 2001 From: jcid Date: Mon, 14 Jan 2008 22:54:28 +0100 Subject: - Added an int32_t include-test, and an EAI_NODATA check for FreeBSD. --- src/dns.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/dns.c') diff --git a/src/dns.c b/src/dns.c index 4bbaa296..b47658c0 100644 --- a/src/dns.c +++ b/src/dns.c @@ -289,10 +289,13 @@ static void *Dns_server(void *data) MSG("DNS error: HOST_NOT_FOUND\n"); else if (error == EAI_AGAIN) MSG("DNS error: TRY_AGAIN\n"); +#ifdef EAI_NODATA + /* Some FreeBSD don't have this anymore */ else if (error == EAI_NODATA) MSG("DNS error: NO_ADDRESS\n"); - else if (h_errno == EAI_FAIL) - MSG("DNS error: NO_RECOVERY\n"); +#endif + else if (h_errno == EAI_FAIL) + MSG("DNS error: NO_RECOVERY\n"); } else { Dns_note_hosts(hosts, res0); dns_server[channel].status = 0; -- cgit v1.2.3