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:
parent
d6d820c013
commit
537b336cf9
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue