summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/m4/ppc.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-05-30 18:49:12 -0500
committerZach van Rijn <me@zv.io>2023-11-01 10:17:54 -0500
commite8a3468d05f0cbec119cd6d57b1bb47a960699a1 (patch)
treee127ce96523b1ae44a7c72cbcee686a6a07b59ed /var/spack/repos/builtin/packages/m4/ppc.patch
parentdcf13bf8658c5f553593a7ac06bf57875977dff4 (diff)
downloadspack-adelie-v0.20.3.tar.gz
spack-adelie-v0.20.3.tar.bz2
spack-adelie-v0.20.3.tar.xz
spack-adelie-v0.20.3.zip
https://git.adelielinux.org/adelie/spack/-/issues/4
Diffstat (limited to 'var/spack/repos/builtin/packages/m4/ppc.patch')
-rw-r--r--var/spack/repos/builtin/packages/m4/ppc.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/m4/ppc.patch b/var/spack/repos/builtin/packages/m4/ppc.patch
new file mode 100644
index 0000000000..73a1bb7597
--- /dev/null
+++ b/var/spack/repos/builtin/packages/m4/ppc.patch
@@ -0,0 +1,11 @@
+diff -ur a/lib/sigsegv.c b/lib/sigsegv.c
+--- a/lib/sigsegv.c 2022-03-05 20:30:15.030000000 +0000
++++ b/lib/sigsegv.c 2022-03-05 20:42:49.910000000 +0000
+@@ -220,7 +220,7 @@
+ # if 0
+ # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1]
+ # else
+-# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
++# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gregs[1]
+ # endif
+ # endif