perf: Fix missing getline declaration
PATCH 1/1 perf: 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 <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Paul Mackerras <[email protected]>
--- tools/perf/util/hist.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
tools/perf/util/hist.c +1 -0
@@ -1,3 +1,4 @@ +#include "util.h" #include "hist.h" #include "session.h" #include "sort.h"
Signature · 1 line
1.6.2.3