1Include <asm/ptrace.h> to get necessary definitions on AArch64 2 3In glibc commit 4https://sourceware.org/git/?p=glibc.git;a=commit;h=7d05a8168b45c0580e1f9a79c2dd26c8f0d31fca, 5including <asm/ptrace.h> from <sys/user.h> on AArch64 has been 6removed. So the Google Breakpad code, which used to build fine on 7glibc 2.18 (CodeSourcery toolchain for example), no longer builds with 8glibc 2.19 (Linaro toolchain for example). 9 10To fix this, this patch adds the missing <asm/ptrace.h> include (for 11AArch64 only, to be conservative). 12 13This patch has not been submitted upstream, since more recent versions 14of Google Breakpad have completely changed this part of the code. 15 16Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 17 18Index: b/src/client/linux/minidump_writer/linux_dumper.h 19=================================================================== 20--- a/src/client/linux/minidump_writer/linux_dumper.h 21+++ b/src/client/linux/minidump_writer/linux_dumper.h 22@@ -43,6 +43,9 @@ 23 #include <stdint.h> 24 #include <sys/types.h> 25 #include <sys/user.h> 26+#if defined(__aarch64__) 27+#include <asm/ptrace.h> 28+#endif 29 30 #include "common/memory.h" 31 #include "google_breakpad/common/minidump_format.h" 32