From 91012030909bcc03199aa4ff0513ac0fd994e6ae Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 11 Jan 2020 05:13:29 +0100 Subject: [PATCH] openlierox: fix build on ppc32/musl --- srcpkgs/openlierox/patches/ppc-musl.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/srcpkgs/openlierox/patches/ppc-musl.patch b/srcpkgs/openlierox/patches/ppc-musl.patch index 4322767cb4a..71bde1fef8d 100644 --- a/srcpkgs/openlierox/patches/ppc-musl.patch +++ b/srcpkgs/openlierox/patches/ppc-musl.patch @@ -10,3 +10,15 @@ #ifdef NBREAKPAD +@@ -320,7 +322,11 @@ public: + pnt = (void*) uc->uc_mcontext.sc_iaoq[0] & ~0x3UL ; + # elif (defined (__ppc__)) || (defined (__powerpc__)) + ucontext_t* uc = (ucontext_t*) secret; ++# if !defined(__GLIBC__) && !defined(__powerpc64__) ++ pnt = (void*) ((struct pt_regs *)uc->uc_regs)->nip ; ++# else + pnt = (void*) uc->uc_mcontext.regs->nip ; ++# endif + # elif defined(__sparc__) + struct sigcontext* sc = (struct sigcontext*) secret; + # if __WORDSIZE == 64