svn commit: samba r17855 - in branches/SAMBA_3_0/source/libsmb: .

vlendec at samba.org vlendec at samba.org
Sun Aug 27 17:36:17 GMT 2006


Author: vlendec
Date: 2006-08-27 17:36:17 +0000 (Sun, 27 Aug 2006)
New Revision: 17855

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17855

Log:
Fix the build on systems without LDAP
Modified:
   branches/SAMBA_3_0/source/libsmb/nterr.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/nterr.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/nterr.c	2006-08-27 17:24:31 UTC (rev 17854)
+++ branches/SAMBA_3_0/source/libsmb/nterr.c	2006-08-27 17:36:17 UTC (rev 17855)
@@ -650,9 +650,11 @@
         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));
 



More information about the samba-cvs mailing list