[PATCH v2] wldap32: Define a debug channel only when we are using it.
Gerald Pfeifer
gerald at pfeifer.com
Sun Feb 2 13:19:19 CST 2020
We only need this debug channel when we're later using it - and all
uses in this file are guarded by #ifdef HAVE_LDAP, so use the same
guard here as well.
Thanks to Nikolay for this hint based on an earlier patch.
Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
dlls/wldap32/add.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/wldap32/add.c b/dlls/wldap32/add.c
index 0a24d95f32..f5796a6fd7 100644
--- a/dlls/wldap32/add.c
+++ b/dlls/wldap32/add.c
@@ -34,7 +34,9 @@
#include "wldap32.h"
#include "wine/debug.h"
+#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
+#endif
#ifdef HAVE_LDAP
static LDAPMod *nullattrs[] = { NULL };
--
2.25.0
More information about the wine-devel
mailing list