diff options
author | Liming Wang <[email protected]> | 2009-12-02 14:11:46 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-12-02 09:24:56 +0100 |
commit | c19e33aa840e9202ef8d4c93056b59f3edc2208d (patch) | |
tree | e7529511d7af0637a7cae8fd43eb5ef842e520f5 | |
parent | 7be077f56370cd52c48c08272b0867132f87bc48 (diff) |
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 <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
Acked-by: Xiao Guangrong <[email protected]>
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | tools/perf/util/string.c | 2 |
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" |