]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
James Bursa fixes: find the hosts file on RISC OS, and made it build with
authorDaniel Stenberg <daniel@haxx.se>
Thu, 5 Jan 2006 07:57:32 +0000 (07:57 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 5 Jan 2006 07:57:32 +0000 (07:57 +0000)
newer gcc versions that no longer defines "riscos".

ares/CHANGES
ares/ares_init.c
ares/ares_private.h

index 4374b9f4def4f82df5e5cf6c0a8d5712257f715b..f4d4676d5ed6d8defd83152e239b4ad1a351e4e7 100644 (file)
@@ -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
index f97f701577e02337d53abb189caf7a8933caaba9..a6a6723438fd9f534464cffd833635929d33eacf 100644 (file)
@@ -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. */
index 83b77d2a4105cd76e80dff8a431329b02d693295..df51266dcdf92c6f0f8c363f235c71f4086005cc 100644 (file)
 #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"