mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
http-proxy: fix build with --disable-proxy or --disable-http
Reported-by: Dan Fandrich
This commit is contained in:
parent
7e8247c467
commit
0d39e5cc95
@ -677,5 +677,10 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
void Curl_connect_free(struct Curl_easy *data)
|
||||||
|
{
|
||||||
|
(void)data;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* CURL_DISABLE_PROXY */
|
#endif /* CURL_DISABLE_PROXY */
|
||||||
|
@ -35,11 +35,14 @@ CURLcode Curl_proxy_connect(struct connectdata *conn, int sockindex);
|
|||||||
|
|
||||||
bool Curl_connect_complete(struct connectdata *conn);
|
bool Curl_connect_complete(struct connectdata *conn);
|
||||||
bool Curl_connect_ongoing(struct connectdata *conn);
|
bool Curl_connect_ongoing(struct connectdata *conn);
|
||||||
void Curl_connect_free(struct Curl_easy *data);
|
|
||||||
|
|
||||||
#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,y) CURLE_OK
|
#define Curl_proxy_connect(x,y) CURLE_OK
|
||||||
|
#define Curl_connect_complete(x) CURLE_OK
|
||||||
|
#define Curl_connect_ongoing(x) FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void Curl_connect_free(struct Curl_easy *data);
|
||||||
|
|
||||||
#endif /* HEADER_CURL_HTTP_PROXY_H */
|
#endif /* HEADER_CURL_HTTP_PROXY_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user