Skip to contentSkip to conversation

perf: Fix missing getline declaration

PATCH New Frederic Weisbecker 1 participant 1 message May 13, 2010 perf events

lore
Share & tools
lore
#0 lore raw

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’

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
index 451d2e4..5dc4f84 100644
@@ -1,3 +1,4 @@
+#include "util.h"
 #include "hist.h"
 #include "session.h"
 #include "sort.h"
Signature · 1 line
1.6.2.3