diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index 6ba5fbbc20..bc27d1ed1b 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -38,6 +38,7 @@ #ifdef _SAMBA_BUILD_ #include "build.h" +#include "dynconfig.h" #endif #define LDB_MODULE_PREFIX "modules:" @@ -202,7 +203,11 @@ int ldb_try_load_dso(struct ldb_context *ldb, const char *name) int (*init_fn) (void); #ifdef HAVE_DLOPEN +#ifdef _SAMBA_BUILD_ + path = talloc_asprintf(ldb, "%s/ldb/%s.%s", dyn_MODULESDIR, name, dyn_SHLIBEXT); +#else path = talloc_asprintf(ldb, "%s/%s.%s", MODULESDIR, name, SHLIBEXT); +#endif ldb_debug(ldb, LDB_DEBUG_TRACE, "trying to load %s from %s\n", name, path); |