mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Fix build with FTP disabled and FILE enabled
Obtained from: dc0a671213
Reported by: Charlie Li <ml+freebsd@vishwin.info>
This commit is contained in:
parent
d28398e9e0
commit
be79e622fa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=502732
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue