diff options
Diffstat (limited to 'editors/libreoffice/files/patch-basic_source_classes_sbxmod.cxx')
-rw-r--r-- | editors/libreoffice/files/patch-basic_source_classes_sbxmod.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/editors/libreoffice/files/patch-basic_source_classes_sbxmod.cxx b/editors/libreoffice/files/patch-basic_source_classes_sbxmod.cxx new file mode 100644 index 000000000000..3eb7b7bbbb57 --- /dev/null +++ b/editors/libreoffice/files/patch-basic_source_classes_sbxmod.cxx @@ -0,0 +1,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; |