summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-08-01 21:09:09 +0300
committerTor Lillqvist <tml@iki.fi>2011-08-01 21:09:09 +0300
commit6255681095b81e82aa8305655a531d1317f424e6 (patch)
tree83c53a8e84ef28ac3ae22a42ad24b50970e6cff7 /sal
parentff6072a39712005360728720f49fb54ad27487c5 (diff)
We do want to use RTLD_DEFAULT and dlsym() also on iOS
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/module.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sal/osl/unx/module.c b/sal/osl/unx/module.c
index 5076138cdd75..4654e5a28cca 100644
--- a/sal/osl/unx/module.c
+++ b/sal/osl/unx/module.c
@@ -112,7 +112,7 @@ sal_Bool SAL_CALL
osl_getModuleHandle(rtl_uString *pModuleName, oslModule *pResult)
{
(void) pModuleName; /* avoid warning about unused parameter */
-#ifndef NO_DL_FUNCTIONS
+#if !defined(NO_DL_FUNCTIONS) || defined(IOS)
*pResult = (oslModule) RTLD_DEFAULT;
#else
*pResult = NULL;
@@ -161,7 +161,8 @@ osl_getAsciiFunctionSymbol(oslModule Module, const sal_Char *pSymbol)
{
void *fcnAddr = NULL;
-#ifndef NO_DL_FUNCTIONS
+/* We do want to use dlsym on iOS */
+#if !defined(NO_DL_FUNCTIONS) || defined(IOS)
if (pSymbol)
{
fcnAddr = dlsym(Module, pSymbol);