aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 426f4af76..0e75a424d 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3055,7 +3055,7 @@ static CURLcode ftp_connect(struct connectdata *conn,
bool *done) /* see description above */
{
CURLcode result;
-#ifndef CURL_DISABLE_HTTP
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_PROXY)
/* for FTP over HTTP proxy */
struct HTTP http_proxy;
struct FTP *ftp_save;