From 27db4c6d18b31c2e70211efe3c26816cd5d38b24 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 11 Apr 2004 01:26:53 +0000 Subject: r158: cope with or without LDAP in samba build of ldb (This used to be commit e776ce4f9e6fead235b3cec86d85eb95704f10ef) --- source4/lib/ldb/common/ldb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/ldb/common/ldb.c') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 146745043f..e84473efab 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -52,11 +52,11 @@ struct ldb_context *ldb_connect(const char *url, unsigned int flags, return ltdb_connect(url, flags, options); } -#ifdef HAVE_LDAP +#if HAVE_LDAP if (strncmp(url, "ldap", 4) == 0) { return lldb_connect(url, flags, options); } -#endif /*HAVE_LDAP*/ +#endif errno = EINVAL; return NULL; -- cgit