diff options
Diffstat (limited to 'meta/recipes-sato/webkit/files/ppc-musl-fix.patch')
-rw-r--r-- | meta/recipes-sato/webkit/files/ppc-musl-fix.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/files/ppc-musl-fix.patch b/meta/recipes-sato/webkit/files/ppc-musl-fix.patch new file mode 100644 index 0000000000..5f58e4953e --- /dev/null +++ b/meta/recipes-sato/webkit/files/ppc-musl-fix.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | ucontext structure is different between musl and glibc for ppc | ||
2 | therefore its not enough just to check for arch alone, we also | ||
3 | need to check for libc type. | ||
4 | |||
5 | Fixes errors like | ||
6 | |||
7 | Source/JavaScriptCore/heap/MachineStackMarker.cpp:90:65: error: 'struct mcontext_t' has no member named 'uc_regs'; did you mean 'gregs'? | ||
8 | thread->suspendedMachineContext = *userContext->uc_mcontext.uc_regs; | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | |||
14 | Index: webkitgtk-2.12.3/Source/JavaScriptCore/heap/MachineStackMarker.cpp | ||
15 | =================================================================== | ||
16 | --- webkitgtk-2.12.3.orig/Source/JavaScriptCore/heap/MachineStackMarker.cpp | ||
17 | +++ webkitgtk-2.12.3/Source/JavaScriptCore/heap/MachineStackMarker.cpp | ||
18 | @@ -86,7 +86,7 @@ static void pthreadSignalHandlerSuspendR | ||
19 | } | ||
20 | |||
21 | ucontext_t* userContext = static_cast<ucontext_t*>(ucontext); | ||
22 | -#if CPU(PPC) | ||
23 | +#if CPU(PPC) && defined(__GLIBC__) | ||
24 | thread->suspendedMachineContext = *userContext->uc_mcontext.uc_regs; | ||
25 | #else | ||
26 | thread->suspendedMachineContext = userContext->uc_mcontext; | ||