diff options
author | jcid <devnull@localhost> | 2008-01-14 22:54:28 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-01-14 22:54:28 +0100 |
commit | 17e6f35cfbfa7a73e986fcd11617db12898d740f (patch) | |
tree | f21fb0b4a318f0e5cedf378d3baf34f89a54268f /src/dns.c | |
parent | bf0a192dd862b91a268faa1b4faba839cabb9436 (diff) |
- Added an int32_t include-test, and an EAI_NODATA check for FreeBSD.
Diffstat (limited to 'src/dns.c')
-rw-r--r-- | src/dns.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |