The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / google-breakpad / 0001-add-missing-asm-ptrace-include.patch
1 Include <asm/ptrace.h> to get necessary definitions on AArch64
2
3 In glibc commit
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).
9
10 To fix this, this patch adds the missing <asm/ptrace.h> include (for
11 AArch64 only, to be conservative).
12
13 This patch has not been submitted upstream, since more recent versions
14 of Google Breakpad have completely changed this part of the code.
15
16 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17
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
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"