From 4759cf099f7bc07e47075a0e962e4999b2ad429e Mon Sep 17 00:00:00 2001 From: "y-iida@secom.co.jp" Date: Tue, 21 Aug 2012 20:46:27 +0200 Subject: [PATCH] Fix a build error. --- src/ChangeLog | 5 +++++ src/connect.c | 2 ++ src/http.c | 2 ++ 3 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 8fcd0bf0..214e3008 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2012-08-21 (tiny change) + + * connect.c (connect_to_ip) [ENABLE_IPV6]: Attempt to use IPv6. + * http.c (gethttp): Likewise. + 2012-07-03 Steven Schubiger * init.c: Include warc.h for warc_close in cleanup function. diff --git a/src/connect.c b/src/connect.c index 119ccb71..6d7cc975 100644 --- a/src/connect.c +++ b/src/connect.c @@ -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 } } diff --git a/src/http.c b/src/http.c index fa2d5ed2..02988d20 100644 --- a/src/http.c +++ b/src/http.c @@ -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); -- 2.39.2