aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-multimedia/jack/a2jmidid/ppc_musl_ucontext.patch
blob: 1fa64812ef93367932da0ea4fec679877f62b0f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Add musl/ppc mcontext differences specific checks to choose
correct gregs and context structure definitions

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/sigsegv.c
+++ b/sigsegv.c
@@ -95,7 +95,11 @@ static void signal_segv(int signum, sigi
     for(i = 0; i < NGREG; i++)
         a2j_error("reg[%02d]       = 0x" REGFORMAT, i,
 #if defined(__powerpc__) && !defined(__powerpc64__)
+# if defined(__GLIBC__)
                 ucontext->uc_mcontext.uc_regs[i]
+# else
+                ucontext->uc_regs->gregs[i]
+# endif
 #elif defined(__powerpc64__)
                 ucontext->uc_mcontext.gp_regs[i]
 #elif defined(__sparc__) && defined(__arch64__)