diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2011-10-26 12:41:38 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-10-26 13:15:41 -0200 |
commit | a9072bc0b0af991e274b699f17bc50cf201e377b (patch) | |
tree | 8ba2c9e48d218e5537e65e28224d106e40e23b23 /tools/perf/scripts/python | |
parent | 4610e4137b5fb93042a248928a2c0049ef7d4190 (diff) |
perf header: Fix build on old systems
For instance, on Fedora 8:
CC /home/acme/git/build/perf/util/header.o
cc1: warnings being treated as errors
util/header.c: In function ‘write_cpudesc’:
util/header.c:281: warning: implicit declaration of function ‘getline’
util/header.c:281: warning: nested extern declaration of ‘getline’
make: *** [/home/acme/git/build/perf/util/header.o] Error 1
make: Leaving directory `/home/acme/git/linux/tools/perf'
[acme@localhost linux]$
This happens due to header ordering, in perf util.h sets _GNU_SOURCE, so
it must come first.
Reported-by: Ingo Molnar <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions