summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLiming Wang <liming.wang@windriver.com>2009-12-02 07:11:46 +0100
committerIngo Molnar <mingo@elte.hu>2009-12-02 09:24:56 +0100
commitc19e33aa840e9202ef8d4c93056b59f3edc2208d (patch)
treee7529511d7af0637a7cae8fd43eb5ef842e520f5 /tools
parenttrace_syscalls: Remove unused syscall_name_to_nr() (diff)
downloadlinux-c19e33aa840e9202ef8d4c93056b59f3edc2208d.tar.xz
linux-c19e33aa840e9202ef8d4c93056b59f3edc2208d.zip
perf tools: Fix _GNU_SOURCE macro related strndup() build error
strndup is a GNU extension. So dont include string.h without defining _GNU_SOURCE (it results in a compile error otherwise). Remove these includes as util.h does it already. Signed-off-by: Liming Wang <liming.wang@windriver.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Acked-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Cc: peterz@infradead.org Cc: mhiramat@redhat.com LKML-Reference: <1259734306-26323-1-git-send-email-liming.wang@windriver.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/string.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/perf/util/string.c b/tools/perf/util/string.c
index 0977cf431789..f24a8cc933d5 100644
--- a/tools/perf/util/string.c
+++ b/tools/perf/util/string.c
@@ -1,5 +1,3 @@
-#include <string.h>
-#include <stdlib.h>
#include "string.h"
#include "util.h"