r18900: Next attempt to fix the Solaris build. Not sure about whether to merge this
[kai/samba-autobuild/.git] / source3 / lib / ldb / common / ldb_modules.c
index 06a8a4bcf654a72b3b85bc36fe59109075332ec9..c6cf1e88eb64e760f2fc1844e94d1aad1aa4ec0d 100644 (file)
@@ -137,7 +137,7 @@ static const struct ldb_module_ops *ldb_find_module_ops(const char *name)
 
 #ifndef STATIC_ldb_MODULES
 
-#ifdef HAVE_LDAP
+#if defined(HAVE_LDAP) && defined(HAVE_LDAP_INITIALIZE)
 #define LDAP_INIT ldb_ldap_init,
 #else
 #define LDAP_INIT