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

Showing the changes to tools/perf/util/string.c (1 of 1 file). Show all

Unified · Split

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