summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2022-12-30 12:55:31 +0200
committerTor Lillqvist <tml@collabora.com>2022-12-30 12:15:06 +0000
commitaf560f84efc5e48f122a468450f51dfff8359c8e (patch)
tree5649c694f700470abddd95650910dae4fe9335f6 /tools/source
parentd993327eab0a2c9c8820c6528075b01de68b0ec6 (diff)
I get "warning: unsupported syscall: __sys_prlimit64" in WASM so avoid that
Change-Id: I8a9a19d3c7757e1b7e1d194c439280a9d4824c3a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144876 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/misc/extendapplicationenvironment.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/misc/extendapplicationenvironment.cxx b/tools/source/misc/extendapplicationenvironment.cxx
index ce2237a88c70..07f9779ccc26 100644
--- a/tools/source/misc/extendapplicationenvironment.cxx
+++ b/tools/source/misc/extendapplicationenvironment.cxx
@@ -38,7 +38,7 @@ namespace tools
{
void extendApplicationEnvironment()
{
-#if defined UNX
+#if defined UNX && !defined EMSCRIPTEN
// Try to set RLIMIT_NOFILE as large as possible (failure is harmless):
rlimit lim;
if (getrlimit(RLIMIT_NOFILE, &lim) == 0)