diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-12 15:57:31 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-12 15:59:12 +0200 |
commit | 9895690965e79cc57502001f95a2cb09971fe7d5 (patch) | |
tree | 7c3bed89bbaa8014686f05c17ed455cb23dde1b4 /sal/osl | |
parent | b68f06287d34833a59841b8000641a02d0994eb8 (diff) |
Fix Android compilation error
Diffstat (limited to 'sal/osl')
-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 */ |