From 225016198320a7e1d9a966de8e4ee357565e5b73 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 14 Sep 2012 14:07:29 +0300 Subject: Adapt for DISABLE_DYNLOADING possibility on Android Change-Id: I7fcea698c3d89c5b84b38a708502bcdf4526a614 --- sal/osl/unx/module.cxx | 4 ++-- sal/osl/unx/process_impl.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sal/osl') diff --git a/sal/osl/unx/module.cxx b/sal/osl/unx/module.cxx index a68a105e7fb7..386aa0b1c2a9 100644 --- a/sal/osl/unx/module.cxx +++ b/sal/osl/unx/module.cxx @@ -96,7 +96,7 @@ static sal_Bool getModulePathFromAddress(void * address, rtl_String ** path) { #else Dl_info dl_info; -#ifdef ANDROID +#if defined(ANDROID) && !defined(DISABLE_DYNLOADING) result = lo_dladdr(address, &dl_info); #else result = dladdr(address, &dl_info); @@ -105,7 +105,7 @@ static sal_Bool getModulePathFromAddress(void * address, rtl_String ** path) { if (result != 0) { rtl_string_newFromStr(path, dl_info.dli_fname); -#ifdef ANDROID +#if defined(ANDROID) && !defined(DISABLE_DYNLOADING) free((void *) dl_info.dli_fname); #endif result = sal_True; diff --git a/sal/osl/unx/process_impl.cxx b/sal/osl/unx/process_impl.cxx index 817b0f6ab748..5225a63b8662 100644 --- a/sal/osl/unx/process_impl.cxx +++ b/sal/osl/unx/process_impl.cxx @@ -113,7 +113,7 @@ oslProcessError SAL_CALL osl_bootstrap_getExecutableFile_Impl ( { oslProcessError result = osl_Process_E_NotFound; -#ifdef ANDROID +#if defined(ANDROID) && !defined(DISABLE_DYNLOADING) /* On Android we in theory want the address of the "lo_main()" * function, as that is what corresponds to "main()" in * LibreOffice programs on normal desktop OSes. -- cgit v1.2.3