[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-c19e33aa840e9202ef8d4c93056b59f3edc2208d@git.kernel.org>
Date: Wed, 2 Dec 2009 08:30:53 GMT
From: tip-bot for Liming Wang <liming.wang@...driver.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
fweisbec@...il.com, xiaoguangrong@...fujitsu.com,
tglx@...utronix.de, liming.wang@...driver.com, mingo@...e.hu
Subject: [tip:perf/core] perf tools: Fix _GNU_SOURCE macro related strndup() build error
Commit-ID: c19e33aa840e9202ef8d4c93056b59f3edc2208d
Gitweb: http://git.kernel.org/tip/c19e33aa840e9202ef8d4c93056b59f3edc2208d
Author: Liming Wang <liming.wang@...driver.com>
AuthorDate: Wed, 2 Dec 2009 14:11:46 +0800
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Wed, 2 Dec 2009 09:24:56 +0100
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@...driver.com>
Acked-by: Frederic Weisbecker <fweisbec@...il.com>
Acked-by: Xiao Guangrong <xiaoguangrong@...fujitsu.com>
Cc: peterz@...radead.org
Cc: mhiramat@...hat.com
LKML-Reference: <1259734306-26323-1-git-send-email-liming.wang@...driver.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
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 0977cf4..f24a8cc 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"
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists