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
This commit is contained in:
rofl0r 2024-10-19 09:26:37 +00:00
parent 73da8a35a3
commit c04ba4711a

View File

@ -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.