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