diff options
-rw-r--r-- | sal/osl/unx/module.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/osl/unx/module.cxx b/sal/osl/unx/module.cxx index e5e91e67814b..419bfc570aa4 100644 --- a/sal/osl/unx/module.cxx +++ b/sal/osl/unx/module.cxx @@ -160,19 +160,19 @@ oslModule SAL_CALL osl_loadModuleAscii(const sal_Char *pModuleName, sal_Int32 nR { #ifndef NO_DL_FUNCTIONS #ifdef ANDROID - void *pLib = lo_dlopen(pModuleName); (void) nRtldMode; + void *pLib = lo_dlopen(pModuleName); #else int rtld_mode = ((nRtldMode & SAL_LOADMODULE_NOW) ? RTLD_NOW : RTLD_LAZY) | ((nRtldMode & SAL_LOADMODULE_GLOBAL) ? RTLD_GLOBAL : RTLD_LOCAL); void* pLib = dlopen(pModuleName, rtld_mode); -#endif + SAL_INFO_IF( pLib == 0, "sal.osl", "dlopen(" << pModuleName << ", " << rtld_mode << "): " << dlerror()); - +#endif return ((oslModule)(pLib)); #else /* NO_DL_FUNCTIONS */ |