aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/files/features/perf/perf-force-include-of-stdbool.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/files/features/perf/perf-force-include-of-stdbool.h.patch')
-rw-r--r--recipes-kernel/linux/files/features/perf/perf-force-include-of-stdbool.h.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/features/perf/perf-force-include-of-stdbool.h.patch b/recipes-kernel/linux/files/features/perf/perf-force-include-of-stdbool.h.patch
new file mode 100644
index 0000000..fca7166
--- /dev/null
+++ b/recipes-kernel/linux/files/features/perf/perf-force-include-of-stdbool.h.patch
@@ -0,0 +1,30 @@
+From 34de8e4396a3bd6a4cb1415dd4baa3349c9d4990 Mon Sep 17 00:00:00 2001
+From: Bruce Ashfield <bruce.ashfield@windriver.com>
+Date: Thu, 19 Aug 2010 11:24:45 -0400
+Subject: [PATCH] perf: force include of <stdbool.h>
+
+Large parts of perf use bool variables and assignments.
+Rather than depending on transient includes, we force it
+by including <stdbool.h> directly in perf.h
+
+Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
+---
+ tools/perf/perf.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tools/perf/perf.h b/tools/perf/perf.h
+index 89e3355..164fccb 100644
+--- a/tools/perf/perf.h
++++ b/tools/perf/perf.h
+@@ -5,6 +5,8 @@ struct winsize;
+
+ void get_term_dimensions(struct winsize *ws);
+
++#include <stdbool.h>
++
+ #if defined(__i386__)
+ #include "../../arch/x86/include/asm/unistd.h"
+ #define rmb() asm volatile("lock; addl $0,0(%%esp)" ::: "memory")
+--
+1.7.9.7
+