diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2011-02-25 21:57:04 +0100 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2011-03-04 01:17:18 +0100 |
commit | ff9ae1babd8ce88c3f90db6278ea5f55bdcb4624 (patch) | |
tree | 703eed1cfbb851476cc250dda706327f35d35f5b /tools | |
parent | c09d7a3d2e365e11c09b9c6414c17fe55bd32a8e (diff) | |
download | kernel_goldelico_gta04-ff9ae1babd8ce88c3f90db6278ea5f55bdcb4624.zip kernel_goldelico_gta04-ff9ae1babd8ce88c3f90db6278ea5f55bdcb4624.tar.gz kernel_goldelico_gta04-ff9ae1babd8ce88c3f90db6278ea5f55bdcb4624.tar.bz2 |
perf: Fix missing strndup declaration
<ctype.h> is included first without _GNU_SOURCE, so it ends up
including <string.h> without declaring strndup(). And further
<string.h> declarations, even with _GNU_SOURCE defined, are
of course without effect.
Therefore:
util/strfilter.c: Dans la fonction «strfilter_node__new» :
util/strfilter.c:134: attention : déclaration implicite de la fonction « «strndup» »
util/strfilter.c:134: attention : incompatible implicit declaration of built-in function «strndup»
make: *** [util/strfilter.o] Erreur 1
Just don't include ctype.h as it doesn't appear to be necessary
anyway.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/strfilter.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/perf/util/strfilter.c b/tools/perf/util/strfilter.c index 4064b7d..834c8eb 100644 --- a/tools/perf/util/strfilter.c +++ b/tools/perf/util/strfilter.c @@ -1,4 +1,3 @@ -#include <ctype.h> #include "util.h" #include "string.h" #include "strfilter.h" |