From 26e5c20cfa28f908a746a1a27f577bfaa1f9d1b1 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Tue, 31 Oct 2023 13:46:23 -0600 Subject: [PATCH] LibJS: Don't try to use backtrace(3) on Android below API level 33 --- Userland/Libraries/LibJS/JIT/NativeExecutable.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userland/Libraries/LibJS/JIT/NativeExecutable.cpp b/Userland/Libraries/LibJS/JIT/NativeExecutable.cpp index 6c39a4c69d..ee21feb599 100644 --- a/Userland/Libraries/LibJS/JIT/NativeExecutable.cpp +++ b/Userland/Libraries/LibJS/JIT/NativeExecutable.cpp @@ -17,6 +17,10 @@ # define EXECINFO_BACKTRACE #endif +#if defined(AK_OS_ANDROID) && (__ANDROID_API__ < 33) +# undef EXECINFO_BACKTRACE +#endif + namespace JS::JIT { NativeExecutable::NativeExecutable(void* code, size_t size, Vector mapping)