X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fhost.c;h=45455bf023559e1ecf038840d74fd402d37901bb;hb=f3d3a50a5697957befaf94cb44797234a68068c3;hp=bf515f5f3d7f8d0e5b615553427bc1749fe74dfb;hpb=774c7c74619372bca5a3e9be627db59358d2fbb7;p=wget diff --git a/src/host.c b/src/host.c index bf515f5f..45455bf0 100644 --- a/src/host.c +++ b/src/host.c @@ -18,7 +18,10 @@ along with Wget; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include + +#ifndef WINDOWS #include +#endif #include #include @@ -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;