aboutsummaryrefslogtreecommitdiff
path: root/editors/libreoffice/files/patch-basic_source_classes_sbxmod.cxx
blob: 14b2f21fb4c778fb9846e6eeaeb0cc49ad03840b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- basic/source/classes/sbxmod.cxx.orig	2022-12-22 00:14:09 UTC
+++ basic/source/classes/sbxmod.cxx
@@ -1131,7 +1131,7 @@ void SbModule::Run( SbMethod* pMeth )
           struct rlimit rl;
           getrlimit ( RLIMIT_STACK, &rl );
 #endif
-#if defined LINUX
+#if defined(LINUX) || defined(__FreeBSD__)
           // Empiric value, 900 = needed bytes/Basic call level
           // for Linux including 10% safety margin
           nMaxCallLevel = rl.rlim_cur / 900;