summaryrefslogtreecommitdiff
path: root/source3/lib/ldap_debug_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/ldap_debug_handler.c')
-rw-r--r--source3/lib/ldap_debug_handler.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/lib/ldap_debug_handler.c b/source3/lib/ldap_debug_handler.c
index 2181ff014d..98623d1985 100644
--- a/source3/lib/ldap_debug_handler.c
+++ b/source3/lib/ldap_debug_handler.c
@@ -19,13 +19,11 @@
#include "includes.h"
-#if HAVE_LDAP
-
+#if defined(HAVE_LDAP) && defined(HAVE_LBER_LOG_PRINT_FN)
static void samba_ldap_log_print_fn(LDAP_CONST char *data)
{
DEBUG(lp_ldap_debug_threshold(), ("[LDAP] %s", data));
}
-
#endif
void init_ldap_debugging(void)