aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorEr2 <er2@dismail.de>2025-07-06 20:23:58 +0300
committerdec05eba <dec05eba@protonmail.com>2025-07-06 19:44:46 +0200
commit0794008e6f6a349784e930c7a532684af3edb34c (patch)
tree33945e7da7b0fa6b30703e4c5e987113811997d3 /src/main.cpp
parent0cda785bc8d2a05cdbe9cab735de1fe69acbb2e6 (diff)
FreeBSD: Add support
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
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);