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]>
This commit is contained in:
Liming Wang 2009-12-02 14:11:46 +08:00 • committed by Ingo Molnar
commit c19e33aa84

View file

@ -1,5 +1,3 @@
#include <string.h>
#include <stdlib.h>
#include "string.h"
#include "util.h"