]> sjero.net Git - wget/commitdiff
Fix a build error.
authory-iida@secom.co.jp <y-iida@secom.co.jp>
Tue, 21 Aug 2012 18:46:27 +0000 (20:46 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Tue, 21 Aug 2012 18:46:27 +0000 (20:46 +0200)
src/ChangeLog
src/connect.c
src/http.c

index 8fcd0bf0c6c621301f15893d7a8eb5c93192b063..214e3008d5bc5b106d62e6d4c473c7e9685d6c76 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-21  <y-iida@secom.co.jp> (tiny change)
+
+       * connect.c (connect_to_ip) [ENABLE_IPV6]: Attempt to use IPv6.
+       * http.c (gethttp): Likewise.
+
 2012-07-03  Steven Schubiger  <stsc@member.fsf.org>
 
        * init.c: Include warc.h for warc_close in cleanup function.
index 119ccb71b678b33babd1b5c995c6fd8f65f9fe07..6d7cc97594158fc49e0a7e3ee968f35d979b9cf7 100644 (file)
@@ -294,8 +294,10 @@ connect_to_ip (const ip_address *ip, int port, const char *print)
        {
            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
        }
     }
 
index fa2d5ed237a972c15a35911464593f0264833b69..02988d20185c1b7316b026d0b05b7049434ca6f8 100644 (file)
@@ -1962,11 +1962,13 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy,
           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);