You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
574 B

  1. https://github.com/void-linux/void-packages/commit/0d9556b8593d6e67027fb1c83d176b7f899547e5
  2. --- a/lib/sigsegv.c
  3. +++ b/lib/sigsegv.c
  4. @@ -221,8 +221,10 @@ int libsigsegv_version = LIBSIGSEGV_VERS
  5. /* both should be equivalent */
  6. # if 0
  7. # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1]
  8. -# else
  9. +# elif defined(__GLIBC__)
  10. # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
  11. +# else
  12. +# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gregs[1]
  13. # endif
  14. # endif