Use standard sysconf

Fixes compilation of JIT builds on non-glibc OSes. After some testing in a Fedora 41 VM,
__sysconf and sysconf return the same value, and sysconf in glibc appears to just
be an alias to __sysconf to begin with
This commit is contained in:
Alex 2025-05-15 08:36:20 +02:00
parent d6d820c013
commit 537b336cf9
No known key found for this signature in database
GPG Key ID: 2BB7F8FFF675B565
1 changed files with 1 additions and 1 deletions

View File

@ -753,7 +753,7 @@ bool ARMJIT_Memory::IsFastMemSupported()
PageSize = RegularPageSize;
#else
PageSize = __sysconf(_SC_PAGESIZE);
PageSize = sysconf(_SC_PAGESIZE);
isSupported = PageSize == RegularPageSize || PageSize == LargePageSize;
#endif
PageShift = __builtin_ctz(PageSize);