void-packages/srcpkgs/qt5-webkit/patches/musl-ppc.patch
q66 694e3d33d5 qt5-webkit: use nodebug on 32-bit hosts + fix ppc-musl build
[ci skip]

qt5-webkit: fix build on ppc-musl
2019-08-21 20:17:41 +02:00

14 lines
547 B
Diff

--- Source/JavaScriptCore/heap/MachineStackMarker.cpp
+++ Source/JavaScriptCore/heap/MachineStackMarker.cpp
@@ -87,7 +87,11 @@ static void pthreadSignalHandlerSuspendResume(int, siginfo_t*, void* ucontext)
ucontext_t* userContext = static_cast<ucontext_t*>(ucontext);
#if CPU(PPC)
+# if defined(__GLIBC__)
thread->suspendedMachineContext = *userContext->uc_mcontext.uc_regs;
+# else
+ thread->suspendedMachineContext = *userContext->uc_regs;
+# endif
#else
thread->suspendedMachineContext = userContext->uc_mcontext;
#endif