From 0794008e6f6a349784e930c7a532684af3edb34c Mon Sep 17 00:00:00 2001 From: Er2 Date: Sun, 6 Jul 2025 20:23:58 +0300 Subject: FreeBSD: Add support --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d04b52b..4a9c929 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2931,7 +2931,9 @@ static void set_display_server_environment_variables() { int main(int argc, char **argv) { setlocale(LC_ALL, "C"); // Sigh... stupid C +#ifdef __linux__ mallopt(M_MMAP_THRESHOLD, 65536); +#endif signal(SIGINT, stop_handler); signal(SIGTERM, stop_handler); -- cgit v1.2.3-70-g09d2