From: Liming Wang Date: Wed, 2 Dec 2009 06:11:46 +0000 (+0800) Subject: perf tools: Fix _GNU_SOURCE macro related strndup() build error X-Git-Tag: firefly_0821_release~9833^2~3628^2~133 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c19e33aa840e9202ef8d4c93056b59f3edc2208d;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Frederic Weisbecker Acked-by: Xiao Guangrong 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 --- 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 -#include #include "string.h" #include "util.h"