From cee61ae9e633afef8debe3ed1d0ceda1e41d8307 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 24 Feb 2022 12:17:00 +1300 Subject: [PATCH] s4/dlz: try adding support for bind 9.18 Signed-off-by: Douglas Bagnall --- source4/dns_server/dlz_minimal.h | 3 +++ source4/dns_server/wscript_build | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/source4/dns_server/dlz_minimal.h b/source4/dns_server/dlz_minimal.h index e2a14266810..b7e36e7f8e6 100644 --- a/source4/dns_server/dlz_minimal.h +++ b/source4/dns_server/dlz_minimal.h @@ -48,6 +48,9 @@ #elif defined (BIND_VERSION_9_16) # define DLZ_DLOPEN_VERSION 3 # define DNS_CLIENTINFO_VERSION 2 +#elif defined (BIND_VERSION_9_18) +# define DLZ_DLOPEN_VERSION 3 +# define DNS_CLIENTINFO_VERSION 2 #else # error Unsupported BIND version #endif diff --git a/source4/dns_server/wscript_build b/source4/dns_server/wscript_build index 8f606f92692..ab0a241b937 100644 --- a/source4/dns_server/wscript_build +++ b/source4/dns_server/wscript_build @@ -70,6 +70,16 @@ bld.SAMBA_LIBRARY('dlz_bind9_16', deps='samba-hostconfig samdb-common gensec popt dnsserver_common', enabled=bld.AD_DC_BUILD_IS_ENABLED()) +bld.SAMBA_LIBRARY('dlz_bind9_18', + source='dlz_bind9.c', + cflags='-DBIND_VERSION_9_18', + private_library=True, + link_name='modules/bind9/dlz_bind9_18.so', + realname='dlz_bind9_18.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_16', -- 2.30.2