ports/editors/libreoffice/files/patch-basic_source_classes_sbxmod.cxx
Dima Panov 60ab1114e2 */libreoffice*: update to 7.5.0 release (+)
Office team is proud to announce LibreOffice 7.5 Community,
the new major release of the volunteer-supported free office suite for desktop productivity

Read more:	https://blog.documentfoundation.org/blog/2023/02/02/tdf-announces-libreoffice-75-community/
2023-02-04 11:43:03 +03:00

11 lines
468 B
C++

--- 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;