summaryrefslogtreecommitdiff
path: root/net-ftp/lftp/files/lftp-4.9.0-ipv6.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-ftp/lftp/files/lftp-4.9.0-ipv6.patch')
-rw-r--r--net-ftp/lftp/files/lftp-4.9.0-ipv6.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-ftp/lftp/files/lftp-4.9.0-ipv6.patch b/net-ftp/lftp/files/lftp-4.9.0-ipv6.patch
new file mode 100644
index 000000000000..2c02ce5e787b
--- /dev/null
+++ b/net-ftp/lftp/files/lftp-4.9.0-ipv6.patch
@@ -0,0 +1,18 @@
+--- a/src/ftpclass.cc
++++ b/src/ftpclass.cc
+@@ -848,6 +848,7 @@ Ftp::pasv_state_t Ftp::Handle_EPSV_CEPR()
+ conn->data_sa.in.sin_port=htons(port);
+ conn->data_sa.sa.sa_family=AF_INET;
+ }
++#if INET6
+ // V6 / AF_INET6
+ else if (proto == 2)
+ {
+@@ -855,6 +856,7 @@ Ftp::pasv_state_t Ftp::Handle_EPSV_CEPR()
+ conn->data_sa.in6.sin6_port=htons(port);
+ conn->data_sa.sa.sa_family=AF_INET6;
+ }
++#endif
+ else
+ {
+ Disconnect("unsupported address family");