1Add musl/ppc mcontext differences specific checks to choose
2correct gregs and context structure definitions
3
4Upstream-Status: Pending
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6--- a/sigsegv.c
7+++ b/sigsegv.c
8@@ -95,7 +95,11 @@ static void signal_segv(int signum, sigi
9     for(i = 0; i < NGREG; i++)
10         a2j_error("reg[%02d]       = 0x" REGFORMAT, i,
11 #if defined(__powerpc__) && !defined(__powerpc64__)
12+# if defined(__GLIBC__)
13                 ucontext->uc_mcontext.uc_regs[i]
14+# else
15+                ucontext->uc_regs->gregs[i]
16+# endif
17 #elif defined(__powerpc64__)
18                 ucontext->uc_mcontext.gp_regs[i]
19 #elif defined(__sparc__) && defined(__arch64__)
20