Index: curl-7.19.3/lib/ftp.c
===================================================================
--- curl-7.19.3/lib/ftp.c.orig	2009-01-30 16:35:27.000000000 +0100
+++ curl-7.19.3/lib/ftp.c	2009-01-30 16:39:44.000000000 +0100
@@ -1900,7 +1900,9 @@
     result = CURLE_COULDNT_CONNECT;
     break;
   }
-#ifndef CURL_DISABLE_HTTP
+
+#ifndef CURL_DISABLE_HTTP 
+#ifndef CURL_DISABLE_PROXY
   if(conn->bits.tunnel_proxy && conn->bits.httpproxy) {
     /* FIX: this MUST wait for a proper connect first if 'connected' is
      * FALSE */
@@ -1926,6 +1928,7 @@
     if(CURLE_OK != result)
       return result;
   }
+#endif   /* CURL_DISABLE_PROXY*/
 #endif   /* CURL_DISABLE_HTTP */
 
   state(conn, FTP_STOP); /* this phase is completed */
@@ -3060,6 +3063,7 @@
   ftpc->response_time = RESP_TIMEOUT; /* set default response time-out */
 
 #ifndef CURL_DISABLE_HTTP
+#ifndef CURL_DISABLE_PROXY
   if(conn->bits.tunnel_proxy && conn->bits.httpproxy) {
     /* BLOCKING */
     /* We want "seamless" FTP operations through HTTP proxy tunnel */
@@ -3082,6 +3086,7 @@
     if(CURLE_OK != result)
       return result;
   }
+#endif   /* CURL_DISABLE_PROXY */
 #endif   /* CURL_DISABLE_HTTP */
 
   if(conn->protocol & PROT_FTPS) {

