mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
openlierox: fix build on ppc32/musl
This commit is contained in:
parent
7f0ad71bbd
commit
9101203090
1 changed files with 12 additions and 0 deletions
|
@ -10,3 +10,15 @@
|
||||||
|
|
||||||
#ifdef NBREAKPAD
|
#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
|
||||||
|
|
Loading…
Add table
Reference in a new issue