From 05e11a59347558a7bbca1bd6e8ada77efe5106ec Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 19 Jan 2016 18:27:20 -0800 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- .../gdb/0001-include-sys-types.h-for-mode_t.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch (limited to 'meta/recipes-devtools/gdb/gdb') 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 @@ +From acbee4edacb80b5eeaff2480712fe98e56443997 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 19 Jan 2016 18:18:52 -0800 +Subject: [PATCH] include sys/types.h for mode_t + +mode_t is used in target.h, so we need to include sys/types.h to get the +defintion + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + + gdb/gdbserver/target.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h +index 9a40867..aaecab9 100644 +--- a/gdb/gdbserver/target.h ++++ b/gdb/gdbserver/target.h +@@ -27,6 +27,7 @@ + #include "target/waitstatus.h" + #include "mem-break.h" + #include "btrace-common.h" ++#include + + struct emit_ops; + struct buffer; +-- +2.7.0 + -- cgit v1.2.3-54-g00ecf