diff -u connect.c.orig connect.c
--- connect.c.orig	2012-06-02 13:36:09.000000000 -0400
+++ connect.c	2012-08-07 13:42:34.000000000 -0400
@@ -294,8 +294,10 @@
        {
            if (ip->family == AF_INET)
                logprintf (LOG_VERBOSE, _("Connecting to %s:%d... "), txt_addr, port);
+#if ENABLE_IPV6
            else if (ip->family == AF_INET6)
                logprintf (LOG_VERBOSE, _("Connecting to [%s]:%d... "), txt_addr, port);
+#endif
        }
     }
 
diff -u http.c.orig http.c
--- http.c.orig	2012-07-07 04:57:20.000000000 -0400
+++ http.c	2012-08-07 13:07:15.000000000 -0400
@@ -1962,11 +1962,13 @@
           int family = socket_family (pconn.socket, ENDPOINT_PEER);
           sock = pconn.socket;
           using_ssl = pconn.ssl;
+#ifdef 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);
