[PATCH 9/9] perf tools: Fix compile error on x86_64 Ubuntu

From: Arnaldo Carvalho de Melo
Date: Sun Jan 08 2012 - 10:42:45 EST


From: Namhyung Kim <namhyung@xxxxxxxxx>

The ctype.h include is not needed here and it breaks build on some systems (at
least 64bit Ubuntu 10.04) like below. Just get rid of it.

CC util/trace-event-info.o
cc1: warnings being treated as errors
util/trace-event-info.c: In function ârecord_fileâ:
util/trace-event-info.c:192: error: implicit declaration of function âpwriteâ
util/trace-event-info.c:192: error: nested extern declaration of âpwriteâ
make: *** [util/trace-event-info.o] Error 1

Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Joerg Roedel <joerg.roedel@xxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Link: http://lkml.kernel.org/r/1326035430-7621-1-git-send-email-namhyung@xxxxxxxxx
Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/perf/util/trace-event-info.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/trace-event-info.c b/tools/perf/util/trace-event-info.c
index ac6830d..fc22cf5 100644
--- a/tools/perf/util/trace-event-info.c
+++ b/tools/perf/util/trace-event-info.c
@@ -18,7 +18,6 @@
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
-#include <ctype.h>
#include "util.h"
#include <dirent.h>
#include <mntent.h>
--
1.7.8.GIT

--
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/