diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-22 22:46:06 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-22 22:49:48 +0200 |
commit | 38603465cc00e1638c21c123117ea863acdee887 (patch) | |
tree | 23ab0a5be22042430bf82c3514122960aaf4c685 /sal/osl | |
parent | Add a wrapper for InitVCL(), to be called from Java on Android (diff) | |
download | core-38603465cc00e1638c21c123117ea863acdee887.tar.gz core-38603465cc00e1638c21c123117ea863acdee887.zip |
No point searching PATH on Android and iOS
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/process_impl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/osl/unx/process_impl.cxx b/sal/osl/unx/process_impl.cxx index 3c1831d1b598..f2b90b8744f5 100644 --- a/sal/osl/unx/process_impl.cxx +++ b/sal/osl/unx/process_impl.cxx @@ -270,6 +270,7 @@ void SAL_CALL osl_setCommandArgs (int argc, char ** argv) } if (ppArgs[0] != 0) { +#if !defined(ANDROID) && !defined(IOS) // No use searching PATH on Android or iOS /* see @ osl_getExecutableFile(). */ if (rtl_ustr_indexOfChar (rtl_uString_getStr(ppArgs[0]), sal_Unicode('/')) == -1) { @@ -289,7 +290,7 @@ void SAL_CALL osl_setCommandArgs (int argc, char ** argv) rtl_uString_release (pSearchPath); } } - +#endif rtl_uString * pArg0 = 0; if (realpath_u (ppArgs[0], &pArg0)) { |