tools/source/misc/extendapplicationenvironment.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit af560f84efc5e48f122a468450f51dfff8359c8e
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Fri Dec 30 12:55:31 2022 +0200
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Fri Dec 30 12:15:06 2022 +0000

    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 <t...@collabora.com>

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)

Reply via email to