[PATCH] perf: Fix getline undeclared

From: Frederic Weisbecker
Date: Fri May 21 2010 - 06:48:38 EST


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

Signed-off-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
---
tools/perf/util/hist.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index 739c39f..009ad76 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -1,5 +1,5 @@
-#include "build-id.h"
#include "util.h"
+#include "build-id.h"
#include "hist.h"
#include "session.h"
#include "sort.h"
--
1.6.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/