blob: fca71667b648c56f5a4dd94c5c9df1e3dcc4e3da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|