History

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.

Liming Wang committed 16 years ago

Commit c19e33a1 parent 7be077f1 file · +0 −2Browse files

Unified · Split

tools/perf/util/string.c+0−2
@@ -1,5 +1,3 @@
1−#include <string.h>
2−#include <stdlib.h>
31 #include "string.h"
42 #include "util.h"
53