summaryrefslogblamecommitdiff
path: root/system/grep/musl-ppc32.patch
blob: 7f41494084d3b561e5719047a13b1c23a49e3456 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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