From e6ae7d5136f189b397d509c11b5e7d14355a8f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Tue, 19 Feb 2019 17:14:26 +0000 Subject: [PATCH] ITS#8731 Make loading ldap-int.h possible from server code again --- libraries/libldap/ldap-int.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/libldap/ldap-int.h b/libraries/libldap/ldap-int.h index a5b7e46156..0037eeb0e4 100644 --- a/libraries/libldap/ldap-int.h +++ b/libraries/libldap/ldap-int.h @@ -71,7 +71,10 @@ # define LDAP_INT_GLOBAL_OPT() (&ldap_int_global_options) #endif +/* if used from server code, ldap_debug already points elsewhere */ +#ifndef ldap_debug #define ldap_debug ((LDAP_INT_GLOBAL_OPT())->ldo_debug) +#endif /* !ldap_debug */ #define LDAP_INT_DEBUG #include "ldap_log.h"