Skip to contentSkip to conversation

perf tools: Fix build on older systems

tip:perf/urgent tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message May 26, 2011 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  75911c9bd1134f8c0b682aa1e8a8dbefec3ca07a
Gitweb:     http://git.kernel.org/tip/75911c9bd1134f8c0b682aa1e8a8dbefec3ca07a
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Thu, 26 May 2011 10:13:38 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 26 May 2011 11:16:29 -0300

perf tools: Fix build on older systems

Where /usr/include/linux/const.h is not present, e.g. RHEL5.

Cc Srikar Dronamraju <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Stephane Eranian <[email protected]>
Cc Tom Zanussi <[email protected]>
---
 tools/perf/Makefile                   |    2 ++
 tools/perf/util/include/linux/const.h |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
tools/perf/Makefile +2 -0
index 1455413..032ba63 100644
@@ -215,11 +215,13 @@ LIB_FILE=$(OUTPUT)libperf.a
 LIB_H += ../../include/linux/perf_event.h
 LIB_H += ../../include/linux/rbtree.h
 LIB_H += ../../include/linux/list.h
+LIB_H += ../../include/linux/const.h
 LIB_H += ../../include/linux/hash.h
 LIB_H += ../../include/linux/stringify.h
 LIB_H += util/include/linux/bitmap.h
 LIB_H += util/include/linux/bitops.h
 LIB_H += util/include/linux/compiler.h
+LIB_H += util/include/linux/const.h
 LIB_H += util/include/linux/ctype.h
 LIB_H += util/include/linux/kernel.h
 LIB_H += util/include/linux/list.h
tools/perf/util/include/linux/const.h new file +1 -0
new file mode 100644
index 0000000..1b476c9
@@ -0,0 +1 @@
+#include "../../../../include/linux/const.h"