perf tools: Fix _GNU_SOURCE macro related strndup() build error
authorLiming Wang <[email protected]>
Wed, 2 Dec 2009 06:11:46 +0000 (14:11 +0800)
committerIngo Molnar <[email protected]>
Wed, 2 Dec 2009 08:24:56 +0000 (09:24 +0100)
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 <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
Acked-by: Xiao Guangrong <[email protected]>
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <1259734306[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
tools/perf/util/string.c

index 0977cf4317894c4ee02f1e402d66aab705caaf8f..f24a8cc933d5f1aeede2875f774efc00b8610328 100644 (file)
@@ -1,5 +1,3 @@
-#include <string.h>
-#include <stdlib.h>
 #include "string.h"
 #include "util.h"