mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
webkit2gtk: fix musl build (Alpine patch)
This commit is contained in:
parent
6f04ccefd9
commit
3f8d0897a1
1 changed files with 40 additions and 0 deletions
40
srcpkgs/webkit2gtk/patches/musl-fixes.patch
Normal file
40
srcpkgs/webkit2gtk/patches/musl-fixes.patch
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
diff --git a/Source/JavaScriptCore/heap/MachineStackMarker.cpp b/Source/JavaScriptCore/heap/MachineStackMarker.cpp
|
||||||
|
index 1df2874..de8beb2 100644
|
||||||
|
--- Source/JavaScriptCore/heap/MachineStackMarker.cpp
|
||||||
|
+++ 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)
|
Loading…
Add table
Reference in a new issue