diff options
Diffstat (limited to 'sal/osl/unx/module.c')
-rw-r--r-- | sal/osl/unx/module.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sal/osl/unx/module.c b/sal/osl/unx/module.c index e2e06d3ef..a5beea9f6 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,8 @@ osl_getFunctionSymbol(oslModule module, rtl_uString *puFunctionSymbolName) sal_Bool SAL_CALL osl_getModuleURLFromAddress(void * addr, rtl_uString ** ppLibraryUrl) { sal_Bool result = sal_False; +/* Bah, we do want to use dladdr here also on iOS, I think? */ +#if !defined(NO_DL_FUNCTIONS) || defined(IOS) #if defined(AIX) int i; int size = 4 * 1024; @@ -295,6 +301,7 @@ sal_Bool SAL_CALL osl_getModuleURLFromAddress(void * addr, rtl_uString ** ppLibr } } #endif +#endif return result; } |