Mercurial > dillo
changeset 103:41dfbc23e98f
- Added an int32_t include-test, and an EAI_NODATA check for FreeBSD.
author | jcid |
---|---|
date | Mon, 14 Jan 2008 22:54:28 +0100 |
parents | 40532331e111 |
children | ed71c7b5ea92 |
files | ChangeLog src/colors.h src/dns.c |
diffstat | 3 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Jan 13 01:16:27 2008 +0100 +++ b/ChangeLog Mon Jan 14 22:54:28 2008 +0100 @@ -107,6 +107,8 @@ - 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:
--- a/src/colors.h Sun Jan 13 01:16:27 2008 +0100 +++ b/src/colors.h Mon Jan 14 22:54:28 2008 +0100 @@ -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 */
--- a/src/dns.c Sun Jan 13 01:16:27 2008 +0100 +++ b/src/dns.c Mon Jan 14 22:54:28 2008 +0100 @@ -289,10 +289,13 @@ 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;