1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

dlz-bind: Fix preprocessor checks for BIND versions

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12366

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Amitay Isaacs 2016-09-27 00:52:53 +10:00 committed by Jeremy Allison
parent 546f1722c9
commit fbafd2699b

View File

@ -23,15 +23,15 @@
#ifndef DLZ_MINIMAL_H
#define DLZ_MINIMAL_H 1
#ifdef BIND_VERSION_9_8
#define DLZ_DLOPEN_VERSION 1
#elif BIND_VERSION_9_9
#define DLZ_DLOPEN_VERSION 2
#elif BIND_VERSION_9_10
#define DLZ_DLOPEN_VERSION 3
#define DLZ_DLOPEN_AGE 0
#if defined (BIND_VERSION_9_8)
# define DLZ_DLOPEN_VERSION 1
#elif defined (BIND_VERSION_9_9)
# define DLZ_DLOPEN_VERSION 2
#elif defined (BIND_VERSION_9_10)
# define DLZ_DLOPEN_VERSION 3
# define DLZ_DLOPEN_AGE 0
#else
#error Unsupported BIND version
# error Unsupported BIND version
#endif
typedef unsigned int isc_result_t;