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