diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-05-24 23:49:53 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-05-25 02:16:23 +0300 |
commit | cd17ff95047059783a5aa3202218883a0aa3ce4d (patch) | |
tree | 5b30ba79a1d340ade54583253203157b292c9a0d /sal | |
parent | b58108e84ea7a18454b2110f65ab80125181ce48 (diff) |
Fix compilation errors when NO_DL_FUNCTIONS is defined
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/module.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sal/osl/unx/module.c b/sal/osl/unx/module.c index 6deb64f4f8e9..63634c7bd4a2 100644 --- a/sal/osl/unx/module.c +++ b/sal/osl/unx/module.c @@ -112,7 +112,11 @@ sal_Bool SAL_CALL osl_getModuleHandle(rtl_uString *pModuleName, oslModule *pResult) { (void) pModuleName; /* avoid warning about unused parameter */ +#ifndef NO_DL_FUNCTIONS *pResult = (oslModule) RTLD_DEFAULT; +#else + *pResult = NULL; +#endif return sal_True; } @@ -204,6 +208,7 @@ osl_getFunctionSymbol(oslModule module, rtl_uString *puFunctionSymbolName) sal_Bool SAL_CALL osl_getModuleURLFromAddress(void * addr, rtl_uString ** ppLibraryUrl) { sal_Bool result = sal_False; +#ifndef NO_DL_FUNCTIONS #if defined(AIX) int i; int size = 4 * 1024; @@ -295,6 +300,7 @@ sal_Bool SAL_CALL osl_getModuleURLFromAddress(void * addr, rtl_uString ** ppLibr } } #endif +#endif return result; } |