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:
parent
73da8a35a3
commit
c04ba4711a
@ -1286,6 +1286,7 @@ static void relay_connection (struct conn_s *connptr)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef UPSTREAM_SUPPORT
|
||||||
static int
|
static int
|
||||||
connect_to_upstream_proxy(struct conn_s *connptr, struct request_s *request)
|
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);
|
return establish_http_connection(connptr, request);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Establish a connection to the upstream proxy server.
|
* Establish a connection to the upstream proxy server.
|
||||||
|
Loading…
Reference in New Issue
Block a user