[Freeipa-devel] [PATCH 0043] Extend API to be compatible with libdns interface >= 90
Adam Tkac
atkac at redhat.com
Wed Aug 15 13:11:56 UTC 2012
On Fri, Jul 27, 2012 at 02:23:49PM +0200, Petr Spacek wrote:
> Hello,
>
> this patch prevents compiler warning on systems with libdns
> interface version >= 90. This libdns version comes with BIND 9.0.0.
>
> Both new methods are not obligatory, see in bind/lib/dns/db.c,
> functions dns_db_findext() and dns_db_findnodeext().
>
> Petr^2 Spacek
Ack
> From 9481fc6f6032f236d7e5e48f651906b25fd49b61 Mon Sep 17 00:00:00 2001
> From: Petr Spacek <pspacek at redhat.com>
> Date: Fri, 27 Jul 2012 14:18:15 +0200
> Subject: [PATCH] Extend API to be compatible with libdns interface >= 90.
>
> Signed-off-by: Petr Spacek <pspacek at redhat.com>
> ---
> src/ldap_driver.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/ldap_driver.c b/src/ldap_driver.c
> index cae45d4f6cc1f201c40ca3413d1f626e03a0318e..51d618c5a2395c58b362a047096b1cf1fc40fbfd 100644
> --- a/src/ldap_driver.c
> +++ b/src/ldap_driver.c
> @@ -1213,8 +1213,12 @@ static dns_dbmethods_t ldapdb_methods = {
> #endif /* LIBDNS_VERSION_MAJOR >= 45 */
> #if LIBDNS_VERSION_MAJOR >= 82
> NULL, /* rpz_enabled */
> - NULL /* rpz_findips */
> + NULL, /* rpz_findips */
> #endif /* LIBDNS_VERSION_MAJOR >= 82 */
> +#if LIBDNS_VERSION_MAJOR >= 90
> + NULL, /* findnodeext */
> + NULL /* findext */
> +#endif /* LIBDNS_VERSION_MAJOR >= 90 */
> };
>
> static isc_result_t
> --
> 1.7.11.2
>
--
Adam Tkac, Red Hat, Inc.
More information about the Freeipa-devel
mailing list