]> Git Repo - linux.git/commitdiff
perf tools: Fix compile error on x86_64 Ubuntu
authorNamhyung Kim <[email protected]>
Sun, 8 Jan 2012 15:10:30 +0000 (00:10 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Sun, 8 Jan 2012 15:34:55 +0000 (13:34 -0200)
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 <[email protected]>
Cc: Joerg Roedel <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/trace-event-info.c

index ac6830d8292b221f9676f5d3b15b0efdf9658642..fc22cf5c605f38bf079751ca82c469a5a1448e96 100644 (file)
@@ -18,7 +18,6 @@
  *
  * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  */
-#include <ctype.h>
 #include "util.h"
 #include <dirent.h>
 #include <mntent.h>
This page took 0.068693 seconds and 4 git commands to generate.