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 | |
parent | bf0a192dd862b91a268faa1b4faba839cabb9436 (diff) |
- Added an int32_t include-test, and an EAI_NODATA check for FreeBSD.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/colors.h | 9 | ||||
-rw-r--r-- | src/dns.c | 7 |
3 files changed, 16 insertions, 2 deletions
@@ -107,6 +107,8 @@ dillo-fltk2 - Made dialogs use font_factor (e.g. view source). - Implemented the SELECT element in FORMS! Patches: Jeremy Henty ++- Added an int32_t include-test, and an EAI_NODATA check for FreeBSD. + Patch: Thomas-Martin Seck TODO: diff --git a/src/colors.h b/src/colors.h index 99d1bc0f..f350d510 100644 --- a/src/colors.h +++ b/src/colors.h @@ -1,6 +1,15 @@ #ifndef __COLORS_H__ #define __COLORS_H__ +#include "config.h" +#ifdef HAVE_INTTYPES_H +#include <inttypes.h> +#else +#ifdef HAVE_STDINT_H +#include <stdint.h> +#endif +#endif + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ @@ -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; |