Skip to contentSkip to conversation

perf: Fix getline undeclared

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: Fix getline undeclared

We need to have stdio.h included with _GNU_SOURCEfopr getline, which is broken with the inclusion of build-id.h.

Keep util.h included first in hist.c

Fixes:
util/hist.c: Dans la fonction «hist_entry__parse_objdump_line» :
util/hist.c:938: attention : déclaration implicite de la fonction « «getline» » util/hist.c:938: attention : nested extern declaration of «getline»
make: *** [util/hist.o] Erreur 1

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/util/hist.c +1 -1
index 739c39f..009ad76 100644
@@ -1,5 +1,5 @@
-#include "build-id.h"
 #include "util.h"
+#include "build-id.h"
 #include "hist.h"
 #include "session.h"
 #include "sort.h"
Signature · 1 line
1.6.2.3