diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2010-05-13 13:47:16 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-13 15:32:58 -0400 |
commit | 8a0ecfb8b47dc765fdf460913231876bbc95385e (patch) | |
tree | 0075da13b34a88a9e65aaa0b4b6d4a266f2db8dc /tools/perf/util/hist.c | |
parent | 8769e1c7177fd9f6981042bcc6c2851c99a4a7e7 (diff) |
perf hist: Fix missing getline declaration
hist.c needs to include util.h so that it gets stdio.h
inclusion with __GNU_SOURCE defined.
Fixes:
util/hist.c: In function ‘hist_entry__parse_objdump_line’:
util/hist.c:931: erreur: implicit declaration of function ‘getline’
util/hist.c:931: erreur: nested extern declaration of ‘getline’
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1273772836-11533-1-git-send-regression-fweisbec@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.c')
-rw-r--r-- | tools/perf/util/hist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 451d2e45d843..5dc4f8429eda 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include "util.h" | ||
1 | #include "hist.h" | 2 | #include "hist.h" |
2 | #include "session.h" | 3 | #include "session.h" |
3 | #include "sort.h" | 4 | #include "sort.h" |