From 0d39e5cc95177b0255c32b24b9907dd67bf56252 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 15 Jun 2017 23:57:31 +0200 Subject: http-proxy: fix build with --disable-proxy or --disable-http Reported-by: Dan Fandrich --- lib/http_proxy.c | 5 +++++ lib/http_proxy.h | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/http_proxy.c b/lib/http_proxy.c index cd5e7c269..380eded2e 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -677,5 +677,10 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn, return result; } +#else +void Curl_connect_free(struct Curl_easy *data) +{ + (void)data; +} #endif /* CURL_DISABLE_PROXY */ diff --git a/lib/http_proxy.h b/lib/http_proxy.h index bd9d6f590..2e50adc8f 100644 --- a/lib/http_proxy.h +++ b/lib/http_proxy.h @@ -35,11 +35,14 @@ CURLcode Curl_proxy_connect(struct connectdata *conn, int sockindex); bool Curl_connect_complete(struct connectdata *conn); bool Curl_connect_ongoing(struct connectdata *conn); -void Curl_connect_free(struct Curl_easy *data); #else #define Curl_proxyCONNECT(x,y,z,w) CURLE_NOT_BUILT_IN #define Curl_proxy_connect(x,y) CURLE_OK +#define Curl_connect_complete(x) CURLE_OK +#define Curl_connect_ongoing(x) FALSE #endif +void Curl_connect_free(struct Curl_easy *data); + #endif /* HEADER_CURL_HTTP_PROXY_H */ -- cgit v1.2.3