From 31b47acf525d4b7b68f53920b33f599e20a623fb Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 7 May 2007 15:29:25 +0000 Subject: r22750: dlopen() is always available now (and returns a correct error if not supported by the system), thanks to libreplace. (This used to be commit 1152a4f56d7402bf3aa00b5b108c5c6c668cec6b) --- source4/lib/ldb/common/ldb_modules.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index dc49d8d12b..e4b666c454 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -208,7 +208,6 @@ int ldb_try_load_dso(struct ldb_context *ldb, const char *name) int (*init_fn) (void); char *modulesdir; -#ifdef HAVE_DLOPEN if (getenv("LD_LDB_MODULE_PATH") != NULL) { modulesdir = talloc_strdup(ldb, getenv("LD_LDB_MODULE_PATH")); } else { @@ -241,10 +240,6 @@ int ldb_try_load_dso(struct ldb_context *ldb, const char *name) talloc_free(path); return init_fn(); -#else - ldb_debug(ldb, LDB_DEBUG_TRACE, "no dlopen() - not trying to load %s module\n", name); - return -1; -#endif } int ldb_load_modules_list(struct ldb_context *ldb, const char **module_list, struct ldb_module *backend, struct ldb_module **out) -- cgit