summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-03-22 22:46:06 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-03-22 22:49:48 +0200
commit38603465cc00e1638c21c123117ea863acdee887 (patch)
tree23ab0a5be22042430bf82c3514122960aaf4c685 /sal/osl
parent871cc191fc7b815df89ecf488cd3e18aae680b1d (diff)
No point searching PATH on Android and iOS
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/process_impl.cxx3
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))
{