blob: 73ddaabee5662bac00d3a74f8069dd2ed9debaeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
diff --git a/Source/JavaScriptCore/heap/MachineStackMarker.cpp b/Source/JavaScriptCore/heap/MachineStackMarker.cpp
index 1df2874..de8beb2 100644
--- a/Source/JavaScriptCore/heap/MachineStackMarker.cpp
+++ b/Source/JavaScriptCore/heap/MachineStackMarker.cpp
@@ -546,7 +546,7 @@ void* MachineThreads::Thread::Registers::stackPointer() const
#elif USE(PTHREADS)
-#if defined(__GLIBC__) && ENABLE(JIT)
+#if defined(__linux__) && ENABLE(JIT)
#if CPU(X86)
return reinterpret_cast<void*>((uintptr_t) regs.machineContext.gregs[REG_ESP]);
@@ -645,7 +645,7 @@ void* MachineThreads::Thread::Registers::framePointer() const
#error Unknown Architecture
#endif
-#elif defined(__GLIBC__)
+#elif defined(__linux__) // glibc and musl
// The following sequence depends on glibc's sys/ucontext.h.
#if CPU(X86)
@@ -727,7 +727,7 @@ void* MachineThreads::Thread::Registers::instructionPointer() const
#error Unknown Architecture
#endif
-#elif defined(__GLIBC__)
+#elif defined(__linux__) // glibc and musl
// The following sequence depends on glibc's sys/ucontext.h.
#if CPU(X86)
@@ -818,7 +818,7 @@ void* MachineThreads::Thread::Registers::llintPC() const
#error Unknown Architecture
#endif
-#elif defined(__GLIBC__)
+#elif defined(__linux__) // glibc and musl
// The following sequence depends on glibc's sys/ucontext.h.
#if CPU(X86)
|