diff options
author | Zach van Rijn <me@zv.io> | 2022-05-07 13:44:12 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-05-07 13:44:12 +0000 |
commit | 4f5bdac8848d6b711afe33c23e05e2da3307e57c (patch) | |
tree | cefdb40be6c885591d7aa71d2c6a3012c286dff2 /system/grep/musl-ppc32.patch | |
parent | 8b17a4a9414eace2898ef062967efc4cad4d58d0 (diff) | |
download | packages-4f5bdac8848d6b711afe33c23e05e2da3307e57c.tar.gz packages-4f5bdac8848d6b711afe33c23e05e2da3307e57c.tar.bz2 packages-4f5bdac8848d6b711afe33c23e05e2da3307e57c.tar.xz packages-4f5bdac8848d6b711afe33c23e05e2da3307e57c.zip |
system/grep: add patch for 32-bit ppc. fixes #671.
Diffstat (limited to 'system/grep/musl-ppc32.patch')
-rw-r--r-- | system/grep/musl-ppc32.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/system/grep/musl-ppc32.patch b/system/grep/musl-ppc32.patch new file mode 100644 index 000000000..7f4149408 --- /dev/null +++ b/system/grep/musl-ppc32.patch @@ -0,0 +1,12 @@ +diff -ur a/lib/sigsegv.c b/lib/sigsegv.c +--- a/lib/sigsegv.c 2022-05-07 13:35:30.000000000 +0000 ++++ b/lib/sigsegv.c 2022-05-07 13:38:33.030000000 +0000 +@@ -222,7 +222,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 + |