1Author: Kai-Chung Yan <seamlikok@gmail.com> 2Last-Update: 2016-08-24 3Description: Manual definition of struct user_pt_regs 4 On ARM64, libunwind uses struct user_pt_regs which is not defined in 5 anywhere, which causes FTBFS. 6--- a/src/ptrace/_UPT_access_reg.c 7+++ b/src/ptrace/_UPT_access_reg.c 8@@ -26,6 +26,15 @@ 9 10 #include "_UPT_internal.h" 11 12+#if defined(__aarch64__) 13+ struct user_pt_regs { 14+ __u64 regs[31]; 15+ __u64 sp; 16+ __u64 pc; 17+ __u64 pstate; 18+ }; 19+#endif 20+ 21 #if UNW_TARGET_IA64 22 # include <elf.h> 23 # ifdef HAVE_ASM_PTRACE_OFFSETS_H 24