blob: e4bed6e1290be6102a9e6c3413b73212f5a9aceb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- basic/source/classes/sbxmod.cxx.orig 2020-11-22 14:05:28 UTC
+++ basic/source/classes/sbxmod.cxx
@@ -1130,7 +1130,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;
|