diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-07-11 00:40:49 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-07-11 00:44:40 +0300 |
commit | fd2e631d587fb9dc9260cbcb6ca5f40512cd15a7 (patch) | |
tree | eb16041a2bf03f3ad21e058a43e29d7877e8a2a9 /sal/osl | |
parent | e4518218c1efe8bde601710e69a4bf6a7b7cda38 (diff) |
Make iOS sal unit testing actually work
We must call the initialize() methods of the plugins which for iOS
aren't actually plugins in the sense of being dynamically loaded, but
still. Unfortunately this means we have to list the plugin interface
getter functions explicitly in the sal_cppunittester_all source.
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/module.c | 3 | ||||
-rw-r--r-- | sal/osl/unx/system.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sal/osl/unx/module.c b/sal/osl/unx/module.c index 63634c7bd4a2..5076138cdd75 100644 --- a/sal/osl/unx/module.c +++ b/sal/osl/unx/module.c @@ -208,7 +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; -#ifndef NO_DL_FUNCTIONS +/* 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; diff --git a/sal/osl/unx/system.h b/sal/osl/unx/system.h index a9aaeb60e740..ef6d884b89c8 100644 --- a/sal/osl/unx/system.h +++ b/sal/osl/unx/system.h @@ -354,6 +354,7 @@ int macxp_resolveAlias(char *path, int buflen); # ifndef ETIME # define ETIME ETIMEDOUT # endif +# include <dlfcn.h> # include <pthread.h> # include <sys/file.h> # include <sys/ioctl.h> |