]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix _GNU_SOURCE macro related strndup() build error
authorLiming Wang <liming.wang@windriver.com>
Wed, 2 Dec 2009 06:11:46 +0000 (14:11 +0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 2 Dec 2009 08:24:56 +0000 (09:24 +0100)
commitdb99dd081693b656bc2de785c21e908659672996
treee7529511d7af0637a7cae8fd43eb5ef842e520f5
parent33ecc04a5a84f04f890950afc09d78077dffa1ef
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 <liming.wang@windriver.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Cc: peterz@infradead.org
Cc: mhiramat@redhat.com
LKML-Reference: <1259734306-26323-1-git-send-email-liming.wang@windriver.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/string.c