]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Stop including lmdb.h from <dns/view.h>
authorOndřej Surý <ondrej@isc.org>
Thu, 11 Feb 2021 13:15:38 +0000 (14:15 +0100)
committerMark Andrews <marka@isc.org>
Tue, 16 Feb 2021 01:04:46 +0000 (01:04 +0000)
The lmdb.h doesn't have to be included from the dns/view.h header as it
is separately included where used.  This stops exposing the inclusion of
lmdb.h from the libdns headers.

lib/dns/include/dns/view.h

index 937c0e55a90817952d899bec926ccd12a37593c9..575b57e4cfd1c96676217d26822b47ff2e84e4e1 100644 (file)
@@ -253,7 +253,6 @@ struct dns_view {
 #define DNS_VIEWATTR_REQSHUTDOWN 0x04
 
 #ifdef HAVE_LMDB
-#include <lmdb.h>
 #define DNS_LMDB_COMMON_FLAGS (MDB_CREATE | MDB_NOSUBDIR | MDB_NOLOCK)
 #ifndef __OpenBSD__
 #define DNS_LMDB_FLAGS (DNS_LMDB_COMMON_FLAGS)