0002-Use-sigset_t-instead-of-__sigset_t-on-AArch64.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From b9627ed74ab1f58be0de075be68d5cd2e96b8750 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Sun, 3 May 2020 23:08:54 +0200
  4. Subject: [PATCH] Use sigset_t instead of __sigset_t on AArch64
  5. This fixes the build with the musl C library. sigset_t is the
  6. documented type exposed by <signal.h>.
  7. This fix comes from Alpine Linux:
  8. https://git.alpinelinux.org/aports/plain/main/libunwind/fix-aarch64-sigset_t.patch
  9. It was authored by Leo <thinkabit.ukim@gmail.com>.
  10. The issue has been reported upstream at
  11. https://github.com/libunwind/libunwind/issues/176.
  12. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  13. ---
  14. include/libunwind-aarch64.h | 3 ++-
  15. 1 file changed, 2 insertions(+), 1 deletion(-)
  16. diff --git a/include/libunwind-aarch64.h b/include/libunwind-aarch64.h
  17. index 778b4362..926fbbc0 100644
  18. --- a/include/libunwind-aarch64.h
  19. +++ b/include/libunwind-aarch64.h
  20. @@ -34,6 +34,7 @@ extern "C" {
  21. #include <inttypes.h>
  22. #include <stddef.h>
  23. #include <ucontext.h>
  24. +#include <signal.h>
  25. #define UNW_TARGET aarch64
  26. #define UNW_TARGET_AARCH64 1
  27. @@ -192,7 +193,7 @@ typedef struct
  28. unsigned long uc_flags;
  29. struct ucontext *uc_link;
  30. stack_t uc_stack;
  31. - __sigset_t uc_sigmask;
  32. + sigset_t uc_sigmask;
  33. struct unw_sigcontext uc_mcontext;
  34. } unw_tdep_context_t;
  35. --
  36. 2.26.2