summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-27 17:36:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:54 -0500
commit2e9f5c520a843ad22088388d155a172a63c140d5 (patch)
tree9ab757dba41ed499e0681c2077ea8a2f4863c45f
parent91878f9b6fbe5187fb7d0464008ea0abe7f11a73 (diff)
downloadsamba-2e9f5c520a843ad22088388d155a172a63c140d5.tar.gz
samba-2e9f5c520a843ad22088388d155a172a63c140d5.tar.xz
samba-2e9f5c520a843ad22088388d155a172a63c140d5.zip
r17855: Fix the build on systems without LDAP
-rw-r--r--source/libsmb/nterr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/libsmb/nterr.c b/source/libsmb/nterr.c
index 507bb60da4c..e874b80473c 100644
--- a/source/libsmb/nterr.c
+++ b/source/libsmb/nterr.c
@@ -650,9 +650,11 @@ const char *nt_errstr(NTSTATUS nt_code)
static pstring msg;
int idx = 0;
+#ifdef HAVE_LDAP
if (NT_STATUS_TYPE(nt_code) == NT_STATUS_TYPE_LDAP) {
return ldap_err2string(NT_STATUS_LDAP_CODE(nt_code));
}
+#endif
slprintf(msg, sizeof(msg), "NT code 0x%08x", NT_STATUS_V(nt_code));