diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-01-05 07:57:32 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-01-05 07:57:32 +0000 |
commit | d07656e76d757b72602d69d649d723964896baaf (patch) | |
tree | 11e6e2b805a23109b18be71ebcb87303ffb3b2e9 | |
parent | dccda3c23748997ca9c1766804bfc961f789678d (diff) | |
download | c-ares-d07656e76d757b72602d69d649d723964896baaf.tar.gz c-ares-d07656e76d757b72602d69d649d723964896baaf.tar.bz2 c-ares-d07656e76d757b72602d69d649d723964896baaf.zip |
James Bursa fixes: find the hosts file on RISC OS, and made it build with
newer gcc versions that no longer defines "riscos".
-rw-r--r-- | CHANGES | 5 | ||||
-rw-r--r-- | ares_init.c | 2 | ||||
-rw-r--r-- | ares_private.h | 4 |
3 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,10 @@ Changelog for the c-ares project +* January 5, 2006 + +- James Bursa fixed c-ares to find the hosts file on RISC OS, and made it + build with newer gcc versions that no longer defines "riscos". + * December 22 - Daniel Stenberg added ares_getsock() that extracts the set of sockets to diff --git a/ares_init.c b/ares_init.c index f97f701..a6a6723 100644 --- a/ares_init.c +++ b/ares_init.c @@ -504,7 +504,7 @@ DhcpNameServer if (status == ARES_SUCCESS) status = ARES_EOF; -#elif defined(riscos) +#elif defined(__riscos__) /* Under RISC OS, name servers are listed in the system variable Inet$Resolvers, space separated. */ diff --git a/ares_private.h b/ares_private.h index 83b77d2..df51266 100644 --- a/ares_private.h +++ b/ares_private.h @@ -62,6 +62,10 @@ #define PATH_RESOLV_CONF "sys:/etc/resolv.cfg" #define PATH_HOSTS "sys:/etc/hosts" +#elif defined(__riscos__) + +#define PATH_HOSTS "InetDBase:Hosts" + #else #define PATH_RESOLV_CONF "/etc/resolv.conf" |