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
committed by Nadia Holmquist Pedersen
parent d6d820c013
commit 0e64a06c84

View File

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