main: check if glibc is defined

musl libc doesn't implement M_MMAP_THRESHOLD
This commit is contained in:
LinuxUserGD
2025-09-03 14:57:47 +02:00
committed by dec05eba
parent c073d43e30
commit f3fb8c4a93

View File

@@ -3052,7 +3052,7 @@ static void set_display_server_environment_variables() {
int main(int argc, char **argv) {
setlocale(LC_ALL, "C"); // Sigh... stupid C
#ifdef __linux__
#ifdef __GLIBC__
mallopt(M_MMAP_THRESHOLD, 65536);
#endif