diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-11-12 08:08:34 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-11-12 08:10:16 +0100 |
commit | c987ccb1cf6d5a38f9d0e533c759cc25534a51b6 (patch) | |
tree | 6c8964f3b4cbee3a8c919ff04fe2a26b30b16252 | |
parent | 4d58a94cd80eb46d5deb98989d82c683a3f7e199 (diff) | |
download | curl-bagder/no-proxy-no_connect_done.tar.gz |
http_proxy: make Curl_connect_done() work for proxy disabled buildsbagder/no-proxy-no_connect_done
... by making it an empty macro then.
Follow-up to f0b7099a10d1a
Reported-by: Vincent Grande
Fixes #7995
-rw-r--r-- | lib/http_proxy.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/http_proxy.h b/lib/http_proxy.h index cdf8de4fb..2820e1184 100644 --- a/lib/http_proxy.h +++ b/lib/http_proxy.h @@ -39,6 +39,7 @@ CURLcode Curl_proxy_connect(struct Curl_easy *data, int sockindex); bool Curl_connect_complete(struct connectdata *conn); bool Curl_connect_ongoing(struct connectdata *conn); int Curl_connect_getsock(struct connectdata *conn); +void Curl_connect_done(struct Curl_easy *data); #else #define Curl_proxyCONNECT(x,y,z,w) CURLE_NOT_BUILT_IN @@ -46,10 +47,10 @@ int Curl_connect_getsock(struct connectdata *conn); #define Curl_connect_complete(x) CURLE_OK #define Curl_connect_ongoing(x) FALSE #define Curl_connect_getsock(x) 0 +#define Curl_connect_done(x) #endif void Curl_connect_free(struct Curl_easy *data); -void Curl_connect_done(struct Curl_easy *data); /* struct for HTTP CONNECT state data */ struct http_connect_state { |