Only use mallopt M_MMAP_THRESHOLD if glibc

This commit is contained in:
dec05eba
2025-09-03 18:21:58 +02:00
parent 9efe9d3c91
commit b4e003c8f7
2 changed files with 5 additions and 1 deletions

View File

@@ -195,7 +195,9 @@ enum class LaunchAction {
int main(int argc, char **argv) {
setlocale(LC_ALL, "C"); // Sigh... stupid C
#ifdef __GLIBC__
mallopt(M_MMAP_THRESHOLD, 65536);
#endif
if(geteuid() == 0) {
fprintf(stderr, "Error: don't run gsr-ui as the root user\n");