mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-27 17:39:41 -06:00
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:

committed by
Nadia Holmquist Pedersen

parent
d6d820c013
commit
0e64a06c84
@ -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);
|
||||
|
Reference in New Issue
Block a user