Fix build with FTP disabled and FILE enabled

Obtained from:	dc0a671213
Reported by:	Charlie Li <ml+freebsd@vishwin.info>
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-05-26 18:01:53 +00:00
parent d28398e9e0
commit be79e622fa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=502732

View file

@ -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