[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] [PATCH] wget 1.17 doesn't build with --disable-ipv6
From: |
Victor Ananjevsky |
Subject: |
[Bug-wget] [PATCH] wget 1.17 doesn't build with --disable-ipv6 |
Date: |
Mon, 16 Nov 2015 22:10:20 +0200 |
hi
wget 1.17 doesn't build when --disable-ipv6 specified
build fails on linking with following errors
undefined reference to `ftp_auth'
undefined reference to `ftp_pbsz'
undefined reference to `ftp_prot'
this little patch fix the issue
--- wget-1.17/src/ftp-basic.c.orig 2015-11-16 21:44:24.000000000 +0200
+++ wget-1.17/src/ftp-basic.c 2015-11-16 21:46:29.954077209 +0200
@@ -428,6 +428,7 @@
snprintf (buf, buflen, "|%d|%s|%d|", afnum, print_address (addr), port);
buf[buflen - 1] = '\0';
}
+#endif /* ENABLE_IPV6 */
#ifdef HAVE_SSL
/*
@@ -542,6 +543,7 @@
}
#endif /* HAVE_SSL */
+#ifdef ENABLE_IPV6
/* Bind a port and send the appropriate PORT command to the FTP
server. Use acceptport after RETR, to get the socket of data
connection. */
@@ -599,7 +601,7 @@
xfree (respline);
return FTPOK;
}
-#endif
+#endif /* ENABLE_IPV6 */
/* Similar to ftp_port, but uses `PASV' to initiate the passive FTP
transfer. Reads the response from server and parses it. Reads the
--
Victor Ananjevsky <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-wget] [PATCH] wget 1.17 doesn't build with --disable-ipv6,
Victor Ananjevsky <=