From 922fe921ce3df0ea7c3b44f07a076301fcbe06fa Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 22 May 2013 13:46:16 +1000 Subject: lib/util/modules.c: Remove #if SAMBA_BUILD_ == 3 now we only have the waf build Reviewed-by: Jelmer Vernooij Reviewed-by: David Disseldorp --- lib/util/modules.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/util') diff --git a/lib/util/modules.c b/lib/util/modules.c index 23298da344..828f33a0e1 100644 --- a/lib/util/modules.c +++ b/lib/util/modules.c @@ -34,18 +34,10 @@ init_module_fn load_module(const char *path, bool is_probe, void **handle_out) void *init_fn; char *error; -#if _SAMBA_BUILD_ == 3 - /* Always try to use LAZY symbol resolving; if the plugin has - * backwards compatibility, there might be symbols in the - * plugin referencing to old (removed) functions - */ - handle = dlopen(path, RTLD_LAZY); -#else /* This should be a WAF build, where modules should be built * with no undefined symbols and are already linked against * the libraries that they are loaded by */ handle = dlopen(path, RTLD_NOW); -#endif /* This call should reset any possible non-fatal errors that occured since last call to dl* functions */ -- cgit