From: Michał Kępień Date: Wed, 7 Sep 2022 10:50:08 +0000 (+0200) Subject: Fix building with --disable-doh X-Git-Tag: v9.19.5~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c490685319fc8d1fc34e1b10e42ee2b84867b8e;p=thirdparty%2Fbind9.git Fix building with --disable-doh Commit b69e783164cd50e3306364668558e460617ee8fc inadvertently caused builds using the --disable-doh switch to fail, by putting the declaration of the isc__nm_async_settlsctx() function inside an #ifdef block that is only evaluated when DNS-over-HTTPS support is enabled. This results in the following compilation errors being triggered: netmgr/netmgr.c:2657:1: error: no previous prototype for 'isc__nm_async_settlsctx' [-Werror=missing-prototypes] 2657 | isc__nm_async_settlsctx(isc__networker_t *worker, isc__netievent_t *ev0) { | ^~~~~~~~~~~~~~~~~~~~~~~ Fix by making the declaration of the isc__nm_async_settlsctx() function in lib/isc/netmgr/netmgr-int.h visible regardless of whether DNS-over-HTTPS support is enabled or not. --- diff --git a/lib/isc/netmgr/netmgr-int.h b/lib/isc/netmgr/netmgr-int.h index 9f2d76ded6e..20eba5adb8d 100644 --- a/lib/isc/netmgr/netmgr-int.h +++ b/lib/isc/netmgr/netmgr-int.h @@ -1727,11 +1727,11 @@ void isc__nm_http_set_max_streams(isc_nmsocket_t *listener, const uint32_t max_concurrent_streams); +#endif + void isc__nm_async_settlsctx(isc__networker_t *worker, isc__netievent_t *ev0); -#endif - void isc__nm_incstats(isc_nmsocket_t *sock, isc__nm_statid_t id); /*%<