X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fconnect.c;h=604e7a11948989cc6a9cba350ecbc221021f8c4f;hb=4a08094db88011153adadbf995103770b20d2a31;hp=6cfdb4b73f6b310632419a461c2e982e8a3033da;hpb=f50be2a403574a8d2cc01f4be714da9c2d6f748a;p=wget diff --git a/src/connect.c b/src/connect.c index 6cfdb4b7..604e7a11 100644 --- a/src/connect.c +++ b/src/connect.c @@ -1,6 +1,6 @@ /* Establishing and handling network connections. Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GNU Wget. @@ -39,7 +39,11 @@ as that of the covered work. */ #ifndef WINDOWS # include -# include +# ifdef __VMS +# include "vms_ip.h" +# else /* def __VMS */ +# include +# endif /* def __VMS [else] */ # include # ifndef __BEOS__ # include @@ -58,7 +62,11 @@ as that of the covered work. */ #include "host.h" #include "connect.h" #include "hash.h" -#include "iri.h" + +/* Apparently needed for Interix: */ +#ifdef HAVE_STDINT_H +# include +#endif /* Define sockaddr_storage where unavailable (presumably on IPv4-only hosts). */ @@ -304,7 +312,7 @@ connect_to_ip (const ip_address *ip, int port, const char *print) /* In case of error, we will go on anyway... */ int err = setsockopt (sock, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof (on)); IF_DEBUG - if (err < 0) + if (err < 0) DEBUGP (("Failed setting IPV6_V6ONLY: %s", strerror (errno))); } #endif @@ -693,7 +701,7 @@ test_socket_open (int sock) /* Basic socket operations, mostly EINTR wrappers. */ -#if defined(WINDOWS) || defined(MSDOS) +#if defined(WINDOWS) || defined(USE_WATT32) # define read(fd, buf, cnt) recv (fd, buf, cnt, 0) # define write(fd, buf, cnt) send (fd, buf, cnt, 0) # define close(fd) closesocket (fd)