summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-11-16 18:14:05 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-11-16 18:39:06 -0800
commite355b4dd3328425db3613f4136620e4a5ac95d6c (patch)
treefb41d97cb8940a760d1941311c7e5852f8d932e3 /sys-devel/m4/files
parentnet-misc/ntpsec: add link to upstream MR for glibc-2.34 fix (diff)
downloadgentoo-e355b4dd3328425db3613f4136620e4a5ac95d6c.tar.gz
gentoo-e355b4dd3328425db3613f4136620e4a5ac95d6c.tar.bz2
gentoo-e355b4dd3328425db3613f4136620e4a5ac95d6c.zip
sys-devel/m4: add ppc32 musl patch
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-devel/m4/files')
-rw-r--r--sys-devel/m4/files/ppc-musl.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-devel/m4/files/ppc-musl.patch b/sys-devel/m4/files/ppc-musl.patch
new file mode 100644
index 00000000000..6ba37f23359
--- /dev/null
+++ b/sys-devel/m4/files/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
+