bind9-dlz: Add support for BIND 9.14.x
authorAmitay Isaacs <amitay@gmail.com>
Fri, 11 Sep 2020 02:24:51 +0000 (12:24 +1000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Oct 2020 12:17:33 +0000 (12:17 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14487

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Rowland Penny <rpenny@samba.org>
(cherry picked from commit a167a2154d4909e8e1f97d9f36d0e4c947f2d944)

source4/dns_server/dlz_minimal.h
source4/dns_server/wscript_build

index 9a7090f48fd95b4df29cbb334be307542f7968ce..a82bb381ee101e4774ba2e3393dfa9abb2638886 100644 (file)
@@ -44,6 +44,9 @@
 # define DLZ_DLOPEN_VERSION 3
 # define DNS_CLIENTINFO_VERSION 2
 # define ISC_BOOLEAN_AS_BOOL 0
+#elif defined (BIND_VERSION_9_14)
+# define DLZ_DLOPEN_VERSION 3
+# define DNS_CLIENTINFO_VERSION 2
 #else
 # error Unsupported BIND version
 #endif
index 8a8466d096f8446fddbfd384c5631943eac7d67f..b24aeb73d59d6ee669bb14040d8bbcbb25b10c04 100644 (file)
@@ -68,6 +68,16 @@ bld.SAMBA_LIBRARY('dlz_bind9_12',
                   deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
                   enabled=bld.AD_DC_BUILD_IS_ENABLED())
 
+bld.SAMBA_LIBRARY('dlz_bind9_14',
+                  source='dlz_bind9.c',
+                  cflags='-DBIND_VERSION_9_14',
+                  private_library=True,
+                  link_name='modules/bind9/dlz_bind9_14.so',
+                  realname='dlz_bind9_14.so',
+                  install_path='${MODULESDIR}/bind9',
+                  deps='samba-hostconfig samdb-common gensec popt dnsserver_common',
+                  enabled=bld.AD_DC_BUILD_IS_ENABLED())
+
 bld.SAMBA_LIBRARY('dlz_bind9_for_torture',
                   source='dlz_bind9.c',
                   cflags='-DBIND_VERSION_9_8',