]> granicus.if.org Git - curl/commitdiff
http_proxy.h: fix builds with proxy or http disabled
authorYang Tse <yangsita@gmail.com>
Thu, 22 Mar 2012 16:27:14 +0000 (17:27 +0100)
committerYang Tse <yangsita@gmail.com>
Thu, 22 Mar 2012 16:27:14 +0000 (17:27 +0100)
lib/http_proxy.h

index 197996f9e8b0eef086032db94b49d05e05caee8f..518c09383dd8769ce505ad1137cc2dbed681cb7c 100644 (file)
@@ -22,8 +22,6 @@
  *
  ***************************************************************************/
 
-CURLcode Curl_proxy_connect(struct connectdata *conn);
-
 #if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP)
 /* ftp can use this as well */
 CURLcode Curl_proxyCONNECT(struct connectdata *conn,
@@ -33,8 +31,11 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
 /* Default proxy timeout in milliseconds */
 #define PROXY_TIMEOUT (3600*1000)
 
+CURLcode Curl_proxy_connect(struct connectdata *conn);
+
 #else
 #define Curl_proxyCONNECT(x,y,z,w) CURLE_NOT_BUILT_IN
+#define Curl_proxy_connect(x) CURLE_OK
 #endif
 
 #endif /* HEADER_CURL_HTTP_PROXY_H */