]> sjero.net Git - wget/blobdiff - src/host.c
[svn] Generalize connect_with_timeout into run_with_timeout.
[wget] / src / host.c
index bf515f5f3d7f8d0e5b615553427bc1749fe74dfb..45455bf023559e1ecf038840d74fd402d37901bb 100644 (file)
@@ -18,7 +18,10 @@ along with Wget; if not, write to the Free Software
 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include <config.h>
+
+#ifndef WINDOWS
 #include <netdb.h>
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -548,6 +551,10 @@ lookup_host (const char *host, int silent)
   if (!silent)
     logprintf (LOG_VERBOSE, _("Resolving %s... "), host);
 
+  /* Host name lookup goes on below.  #### We should implement
+     getaddrinfo_with_timeout and gethostbyname_with_timeout the same
+     way connect.c implements connect_with_timeout.  */
+
 #ifdef INET6
   {
     struct addrinfo hints, *ai;