bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] patch for GNU wget 1.14


From: y-iida
Subject: [Bug-wget] patch for GNU wget 1.14
Date: 7 Aug 2012 04:24:50 -0000

Hello, GNU wget maintainer.

I run "configure" script with --disable-ipv6 switch,
but compler barfs that AF_INET6 is undefined.
Enjoy the follwing patch.

--- wget-1.14/src/connect.c~    2012-06-02 17:36:09 +0000
+++ wget-1.14/src/connect.c     2012-08-07 04:12:10 +0000
@@ -294,8 +294,10 @@
        {
            if (ip->family == AF_INET)
                logprintf (LOG_VERBOSE, _("Connecting to %s:%d... "), txt_addr, 
port);
+#ifdef ENABLE_IPV6
            else if (ip->family == AF_INET6)
                logprintf (LOG_VERBOSE, _("Connecting to [%s]:%d... "), 
txt_addr, port);
+#endif
        }
     }
 
--- wget-1.14/src/http.c~       2012-07-07 08:57:20 +0000
+++ wget-1.14/src/http.c        2012-08-07 04:15:31 +0000
@@ -1962,11 +1962,13 @@
           int family = socket_family (pconn.socket, ENDPOINT_PEER);
           sock = pconn.socket;
           using_ssl = pconn.ssl;
+#if ENABLE_IPV6
           if (family == AF_INET6)
              logprintf (LOG_VERBOSE, _("Reusing existing connection to 
[%s]:%d.\n"),
                         quotearg_style (escape_quoting_style, pconn.host),
                          pconn.port);
           else
+#endif
              logprintf (LOG_VERBOSE, _("Reusing existing connection to 
%s:%d.\n"),
                         quotearg_style (escape_quoting_style, pconn.host),
                         pconn.port);

Thank you for maintaining free software.
--
  iida



reply via email to

[Prev in Thread] Current Thread [Next in Thread]