Somewhere in the process, programs using the Watt-32 tcp/ip stack
stopped working. Here is a simple patch:
--- Git-latest\ares_init.c Tue Jan 18 15:15:44 2011
+++ ares_init.c Tue Feb 15 17:08:52 2011
@@ -832,7 +832,10 @@
return ARES_ENOMEM;
for (i = 0; def_nameservers[i]; i++)
+ {
servers[i].addr.addrV4.s_addr = htonl(def_nameservers[i]);
+ servers[i].addr.family = AF_INET;
+ }
status = ARES_EOF;
#elif defined(ANDROID)
--gv
Received on 2011-02-15