FreeBSD: Add support

This commit is contained in:
Er2
2025-07-06 20:23:58 +03:00
committed by dec05eba
parent 0cda785bc8
commit 0794008e6f
3 changed files with 33 additions and 1 deletions

View File

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