mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
http_proxy.h: fix builds with proxy or http disabled
This commit is contained in:
parent
e8a32438c2
commit
fe93b0a874
@ -22,8 +22,6 @@
|
|||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
CURLcode Curl_proxy_connect(struct connectdata *conn);
|
|
||||||
|
|
||||||
#if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP)
|
#if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP)
|
||||||
/* ftp can use this as well */
|
/* ftp can use this as well */
|
||||||
CURLcode Curl_proxyCONNECT(struct connectdata *conn,
|
CURLcode Curl_proxyCONNECT(struct connectdata *conn,
|
||||||
@ -33,8 +31,11 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
|
|||||||
/* Default proxy timeout in milliseconds */
|
/* Default proxy timeout in milliseconds */
|
||||||
#define PROXY_TIMEOUT (3600*1000)
|
#define PROXY_TIMEOUT (3600*1000)
|
||||||
|
|
||||||
|
CURLcode Curl_proxy_connect(struct connectdata *conn);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define Curl_proxyCONNECT(x,y,z,w) CURLE_NOT_BUILT_IN
|
#define Curl_proxyCONNECT(x,y,z,w) CURLE_NOT_BUILT_IN
|
||||||
|
#define Curl_proxy_connect(x) CURLE_OK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* HEADER_CURL_HTTP_PROXY_H */
|
#endif /* HEADER_CURL_HTTP_PROXY_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user