< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] Compilation fix for non-IPv6 Win32 build


Please, apply to contrib/ares/ares_init.c.

Index: ares_init.c
===================================================================
--- ares_init.c (revision 5381)
+++ ares_init.c (working copy)
@@ -443,7 +443,9 @@
                   {
              // printf( "ARES: %s\n", pIPAddr ->IpAddress.String );
                         
+#ifdef USE_IPV6
                         channel->servers[ channel->nservers ].family = AF_INET;
+#endif
                 channel->servers[ channel->nservers ].addr.s_addr = 
inet_addr(pIPAddr ->IpAddress.String);
                         channel->nservers++;

-- 
...Bye..Dmitry.