X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fconnect.c;h=69a2e5e6ab9a1f3fe5b071933f04de25efaec559;hb=976cc5bfca3c360921bdb4cce38a225ce5a1bd46;hp=0b58ffadae37e5456be93ea4e336cf8b8ad7ecfc;hpb=6895126a6829a0ed4699d1127b5bccb9555dbffe;p=wget diff --git a/src/connect.c b/src/connect.c index 0b58ffad..69a2e5e6 100644 --- a/src/connect.c +++ b/src/connect.c @@ -278,10 +278,9 @@ connect_to_ip (const ip_address *ip, int port, const char *print) int on = 1; /* In case of error, we will go on anyway... */ int err = setsockopt (sock, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof (on)); -#ifdef ENABLE_DEBUG - if (err < 0) - DEBUGP (("Failed setting IPV6_V6ONLY: %s", strerror (errno))); -#endif + IF_DEBUG + if (err < 0) + DEBUGP (("Failed setting IPV6_V6ONLY: %s", strerror (errno))); } #endif