From c04ba4711a3cb8ff25f05a8914bb6778c8e3079f Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sat, 19 Oct 2024 09:26:37 +0000 Subject: [PATCH] reqs: don't compile upstream code if feature disabled fixes warning about implicit function declaration which is by default treated as an error starting with GCC14. closes #560 --- src/reqs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reqs.c b/src/reqs.c index cbbd1d5..998719a 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -1286,6 +1286,7 @@ static void relay_connection (struct conn_s *connptr) return; } +#ifdef UPSTREAM_SUPPORT static int connect_to_upstream_proxy(struct conn_s *connptr, struct request_s *request) { @@ -1402,7 +1403,7 @@ connect_to_upstream_proxy(struct conn_s *connptr, struct request_s *request) return establish_http_connection(connptr, request); } - +#endif /* * Establish a connection to the upstream proxy server.