]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix building with --disable-doh
authorMichał Kępień <michal@isc.org>
Wed, 7 Sep 2022 10:50:08 +0000 (12:50 +0200)
committerMichał Kępień <michal@isc.org>
Wed, 7 Sep 2022 10:50:08 +0000 (12:50 +0200)
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.

lib/isc/netmgr/netmgr-int.h

index 9f2d76ded6e15d11c8a513955dfc35acb85b488d..20eba5adb8dfafc41c3b74c7e9684244dfca97b2 100644 (file)
@@ -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);
 /*%<