Skip to content

Commit 75911c9

Browse files
committed
perf tools: Fix build on older systems
Where /usr/include/linux/const.h is not present, e.g. RHEL5. Reported-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> Link: http://lkml.kernel.org/n/tip-ypcw2mu0w7dl1rrc6ncz3pee@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent ec80fde commit 75911c9

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎tools/perf/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,13 @@ LIB_FILE=$(OUTPUT)libperf.a
215215
LIB_H += ../../include/linux/perf_event.h
216216
LIB_H += ../../include/linux/rbtree.h
217217
LIB_H += ../../include/linux/list.h
218+
LIB_H += ../../include/linux/const.h
218219
LIB_H += ../../include/linux/hash.h
219220
LIB_H += ../../include/linux/stringify.h
220221
LIB_H += util/include/linux/bitmap.h
221222
LIB_H += util/include/linux/bitops.h
222223
LIB_H += util/include/linux/compiler.h
224+
LIB_H += util/include/linux/const.h
223225
LIB_H += util/include/linux/ctype.h
224226
LIB_H += util/include/linux/kernel.h
225227
LIB_H += util/include/linux/list.h
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../../../../include/linux/const.h"

0 commit comments

Comments
 (0)