summaryrefslogtreecommitdiff
path: root/editors/libreoffice/files/patch-basic_source_classes_sbxmod.cxx
blob: 3eb7b7bbbb57099748c5cc7043e3f080b28019a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- basic/source/classes/sbxmod.cxx.orig
+++ basic/source/classes/sbxmod.cxx
@@ -1059,7 +1059,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;