]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Avoid a compile warning in --disable-proxy case
authorDan Fandrich <dan@coneharvesters.com>
Mon, 9 Mar 2009 04:32:51 +0000 (04:32 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 9 Mar 2009 04:32:51 +0000 (04:32 +0000)
lib/ftp.c

index 426f4af768aadfb41ad92968e82b53bae246bfe5..0e75a424d3536510670b29b68fafcf3ebf30c6d8 100644 (file)
--- 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;