]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8731 Make loading ldap-int.h possible from server code again
authorOndřej Kuzník <ondra@openldap.org>
Tue, 19 Feb 2019 17:14:26 +0000 (17:14 +0000)
committerOndřej Kuzník <ondra@openldap.org>
Tue, 19 Feb 2019 17:14:26 +0000 (17:14 +0000)
libraries/libldap/ldap-int.h

index a5b7e461568c3ad20d74a9050dbd3866dc3cb640..0037eeb0e4f28358c6714638d4ca4c8cd44c12cb 100644 (file)
 #      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"