mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
chroot-grep: fix build on ppc-musl
This commit is contained in:
parent
7dc0cb5508
commit
9d9894c735
1 changed files with 14 additions and 0 deletions
14
srcpkgs/chroot-grep/patches/ppc-musl.patch
Normal file
14
srcpkgs/chroot-grep/patches/ppc-musl.patch
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
--- a/lib/sigsegv.c
|
||||||
|
+++ b/lib/sigsegv.c
|
||||||
|
@@ -221,8 +221,10 @@ int libsigsegv_version = LIBSIGSEGV_VERSION;
|
||||||
|
/* both should be equivalent */
|
||||||
|
# if 0
|
||||||
|
# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1]
|
||||||
|
-# else
|
||||||
|
+# elif defined(__GLIBC__)
|
||||||
|
# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
|
||||||
|
+# else
|
||||||
|
+# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gregs[1]
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue