perf tools: Fix build on older systems
authorArnaldo Carvalho de Melo <[email protected]>
Thu, 26 May 2011 13:13:38 +0000 (10:13 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 26 May 2011 14:16:29 +0000 (11:16 -0300)
Where /usr/include/linux/const.h is not present, e.g. RHEL5.

Reported-by: Srikar Dronamraju <[email protected]>
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]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/Makefile
tools/perf/util/include/linux/const.h [new file with mode: 0644]

index 1455413ec7a74ed5ebea22c70863fb8dc1545d3c..032ba6398a5c696cc46b0957d9452b68aad2d660 100644 (file)
@@ -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
diff --git a/tools/perf/util/include/linux/const.h b/tools/perf/util/include/linux/const.h
new file mode 100644 (file)
index 0000000..1b476c9
--- /dev/null
@@ -0,0 +1 @@
+#include "../../../../include/linux/const.h"