mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
r22789: fix loading of internal samba4 modules
metze (This used to be commit f6740c8b7abdaa65c8467220bf2d14e21fe71053)
This commit is contained in:
parent
7e330c7c0c
commit
2dacfdf099
@ -135,7 +135,7 @@ static const struct ldb_module_ops *ldb_find_module_ops(const char *name)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef STATIC_ldb_MODULES
|
#ifndef STATIC_LIBLDB_MODULES
|
||||||
|
|
||||||
#ifdef HAVE_LDB_LDAP
|
#ifdef HAVE_LDB_LDAP
|
||||||
#define LDAP_INIT ldb_ldap_init,
|
#define LDAP_INIT ldb_ldap_init,
|
||||||
@ -149,7 +149,7 @@ static const struct ldb_module_ops *ldb_find_module_ops(const char *name)
|
|||||||
#define SQLITE3_INIT
|
#define SQLITE3_INIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define STATIC_ldb_MODULES \
|
#define STATIC_LIBLDB_MODULES \
|
||||||
{ \
|
{ \
|
||||||
LDAP_INIT \
|
LDAP_INIT \
|
||||||
SQLITE3_INIT \
|
SQLITE3_INIT \
|
||||||
@ -166,7 +166,7 @@ static const struct ldb_module_ops *ldb_find_module_ops(const char *name)
|
|||||||
|
|
||||||
int ldb_global_init(void)
|
int ldb_global_init(void)
|
||||||
{
|
{
|
||||||
static int (*static_init_fns[])(void) = STATIC_ldb_MODULES;
|
static int (*static_init_fns[])(void) = STATIC_LIBLDB_MODULES;
|
||||||
|
|
||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
int ret = 0, i;
|
int ret = 0, i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user