summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-09-09 20:29:32 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-10-06 07:18:07 +0200
commit040055bb6a578516007ab6f56ebe2ee77b0f8605 (patch)
treeeb1df2a10df2059269ecac7d1b6db4d60122234e
parent3fca66e2b343c6386476a52832591ae4e435d6b2 (diff)
downloadsamba-040055bb6a578516007ab6f56ebe2ee77b0f8605.tar.gz
samba-040055bb6a578516007ab6f56ebe2ee77b0f8605.tar.bz2
samba-040055bb6a578516007ab6f56ebe2ee77b0f8605.zip
s3-module allow libreplace to provide dlopen replacement
Given that we have replacement dlopen() etc, use this from libreplace. The dlerror() from libreplace gives a good error if the platform really does not have dlopen(). Andrew Bartlett
-rw-r--r--source3/lib/module.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/source3/lib/module.c b/source3/lib/module.c
index bec4fddefd..9cd3884c51 100644
--- a/source3/lib/module.c
+++ b/source3/lib/module.c
@@ -21,8 +21,6 @@
#include "includes.h"
-#ifdef HAVE_DLOPEN
-
/* Load a dynamic module. Only log a level 0 error if we are not checking
for the existence of a module (probling). */
@@ -135,28 +133,6 @@ NTSTATUS smb_probe_module(const char *subsystem, const char *module)
return status;
}
-#else /* HAVE_DLOPEN */
-
-NTSTATUS smb_load_module(const char *module_name)
-{
- DEBUG(0,("This samba executable has not been built with plugin support\n"));
- return NT_STATUS_NOT_SUPPORTED;
-}
-
-int smb_load_modules(const char **modules)
-{
- DEBUG(0,("This samba executable has not been built with plugin support\n"));
- return -1;
-}
-
-NTSTATUS smb_probe_module(const char *subsystem, const char *module)
-{
- DEBUG(0,("This samba executable has not been built with plugin support, not probing\n"));
- return NT_STATUS_NOT_SUPPORTED;
-}
-
-#endif /* HAVE_DLOPEN */
-
void init_modules(void)
{
/* FIXME: This can cause undefined symbol errors :