diff options
author | Zach van Rijn <me@zv.io> | 2022-03-05 20:48:50 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-05-01 17:05:52 -0500 |
commit | 1ba7b310ce7a331c3a95006fde9dfc1f5c5ae62e (patch) | |
tree | 9e508154daaa37206bb484e0fe1618389943495d /system/m4/fix-ppc-ucontext-regs.patch | |
parent | 9337ed5e3c3ca0aac69674fdd40e97b6deb2686c (diff) | |
download | packages-1ba7b310ce7a331c3a95006fde9dfc1f5c5ae62e.tar.gz packages-1ba7b310ce7a331c3a95006fde9dfc1f5c5ae62e.tar.bz2 packages-1ba7b310ce7a331c3a95006fde9dfc1f5c5ae62e.tar.xz packages-1ba7b310ce7a331c3a95006fde9dfc1f5c5ae62e.zip |
system/m4: patch SIGSEGV_FAULT_STACKPOINTER macro. become maintainer. fixes #522.
Diffstat (limited to 'system/m4/fix-ppc-ucontext-regs.patch')
-rw-r--r-- | system/m4/fix-ppc-ucontext-regs.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/system/m4/fix-ppc-ucontext-regs.patch b/system/m4/fix-ppc-ucontext-regs.patch new file mode 100644 index 000000000..d696da4ad --- /dev/null +++ b/system/m4/fix-ppc-ucontext-regs.patch @@ -0,0 +1,12 @@ +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 + |