summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-01-19 18:27:20 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-26 22:49:38 +0000
commit05e11a59347558a7bbca1bd6e8ada77efe5106ec (patch)
tree913c6a338621985233ff3dd74416095e7cd8734d /meta/recipes-devtools/gdb/gdb
parent72c1aa2a6dad711b1e235f4cc6b0ad1c9f8c49cc (diff)
downloadpoky-05e11a59347558a7bbca1bd6e8ada77efe5106ec.tar.gz
gdb: Fix build failures on musl
mode_t is needed by gdbserver headers so include sys/types.h to get them (From OE-Core rev: b0742a41e80c48de98f82f7d1e963d462c941934) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb')
-rw-r--r--meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch b/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch
new file mode 100644
index 0000000000..a0292e4166
--- /dev/null
+++ b/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch
@@ -0,0 +1,30 @@
1From acbee4edacb80b5eeaff2480712fe98e56443997 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 19 Jan 2016 18:18:52 -0800
4Subject: [PATCH] include sys/types.h for mode_t
5
6mode_t is used in target.h, so we need to include sys/types.h to get the
7defintion
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11Upstream-Status: Pending
12
13 gdb/gdbserver/target.h | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h
17index 9a40867..aaecab9 100644
18--- a/gdb/gdbserver/target.h
19+++ b/gdb/gdbserver/target.h
20@@ -27,6 +27,7 @@
21 #include "target/waitstatus.h"
22 #include "mem-break.h"
23 #include "btrace-common.h"
24+#include <sys/types.h>
25
26 struct emit_ops;
27 struct buffer;
28--
292.7.0
30