mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
main: check if glibc is defined
musl libc doesn't implement M_MMAP_THRESHOLD
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user