From 9d9894c735f4f0da13b8ca83fe80fa7bc2469d76 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 26 Aug 2022 23:11:45 +0000 Subject: [PATCH] chroot-grep: fix build on ppc-musl --- srcpkgs/chroot-grep/patches/ppc-musl.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/chroot-grep/patches/ppc-musl.patch diff --git a/srcpkgs/chroot-grep/patches/ppc-musl.patch b/srcpkgs/chroot-grep/patches/ppc-musl.patch new file mode 100644 index 00000000000..6ba37f23359 --- /dev/null +++ b/srcpkgs/chroot-grep/patches/ppc-musl.patch @@ -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 +