From 0e64a06c84f9b9428f8647c2aafde110c9d917f3 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 15 May 2025 08:36:20 +0200 Subject: [PATCH] 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 --- src/ARMJIT_Memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ARMJIT_Memory.cpp b/src/ARMJIT_Memory.cpp index 66838918..c79c2d8f 100644 --- a/src/ARMJIT_Memory.cpp +++ b/src/ARMJIT_Memory.cpp @@ -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);