aboutsummaryrefslogtreecommitdiff
path: root/ftp/curl
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-05-26 18:01:53 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-05-26 18:01:53 +0000
commitbe79e622fa170b1151e2389d4f056de7d9f51bea (patch)
treeaeb228509a3c99fa0ce01efbdeb555ad90ba85af /ftp/curl
parentd28398e9e0db3960fba66aab2c4187895d3804f7 (diff)
downloadports-be79e622fa170b1151e2389d4f056de7d9f51bea.tar.gz
ports-be79e622fa170b1151e2389d4f056de7d9f51bea.zip
Fix build with FTP disabled and FILE enabled
Obtained from: https://github.com/curl/curl/commit/dc0a671213fa94489933755828b26f5807d61a7a Reported by: Charlie Li <ml+freebsd@vishwin.info>
Notes
Notes: svn path=/head/; revision=502732
Diffstat (limited to 'ftp/curl')
-rw-r--r--ftp/curl/files/patch-lib-url.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ftp/curl/files/patch-lib-url.c b/ftp/curl/files/patch-lib-url.c
index 770a9ca50b38..32de0d5a4a3c 100644
--- a/ftp/curl/files/patch-lib-url.c
+++ b/ftp/curl/files/patch-lib-url.c
@@ -5,6 +5,15 @@ Last-Update: 2010-12-18
--- lib/url.c.orig 2019-05-21 17:57:39 UTC
+++ lib/url.c
+@@ -439,7 +439,7 @@ CURLcode Curl_init_userdefined(struct Cu
+
+ set->httpreq = HTTPREQ_GET; /* Default HTTP request */
+ set->rtspreq = RTSPREQ_OPTIONS; /* Default RTSP request */
+-#ifndef CURL_DISABLE_FILE
++#ifndef CURL_DISABLE_FTP
+ set->ftp_use_epsv = TRUE; /* FTP defaults to EPSV operations */
+ set->ftp_use_eprt = TRUE; /* FTP defaults to EPRT operations */
+ set->ftp_use_pret = FALSE; /* mainly useful for drftpd servers */
@@ -552,6 +552,10 @@ CURLcode Curl_init_userdefined(struct Cu
CURL_HTTP_VERSION_1_1
#endif