newer gcc versions that no longer defines "riscos".
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
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. */
#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"