2021-08-24 13:30:25 +00:00
|
|
|
https://github.com/void-linux/void-packages/commit/0d9556b8593d6e67027fb1c83d176b7f899547e5
|
|
|
|
--- a/lib/sigsegv.c
|
|
|
|
+++ b/lib/sigsegv.c
|
2022-09-10 06:20:17 +00:00
|
|
|
@@ -246,8 +246,10 @@ int libsigsegv_version = LIBSIGSEGV_VERS
|
|
|
|
/* Because of the union, both definitions 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
|
2021-08-24 13:30:25 +00:00
|
|
|
+# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gregs[1]
|
2022-09-10 06:20:17 +00:00
|
|
|
# endif
|
2021-08-24 13:30:25 +00:00
|
|
|
# endif
|
|
|
|
# endif
|