[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1259734306-26323-1-git-send-email-liming.wang@windriver.com>
Date: Wed, 2 Dec 2009 14:11:46 +0800
From: Liming Wang <liming.wang@...driver.com>
To: Ingo Molnar <mingo@...e.hu>, mhiramat@...hat.com,
fweisbec@...il.com
Cc: peterz@...radead.org, linux-kernel@...r.kernel.org,
Liming Wang <liming.wang@...driver.com>
Subject: [PATCH] perf tools: Add _GNU_SOURCE macro for strndup()
strndup is a GNU extension. So add _GNU_SOURCE macro
to avoid compiling error.
Signed-off-by: Liming Wang <liming.wang@...driver.com>
Acked-by: Frederic Weisbecker <fweisbec@...il.com>
---
tools/perf/util/string.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tools/perf/util/string.c b/tools/perf/util/string.c
index 0977cf4..ea3eb39 100644
--- a/tools/perf/util/string.c
+++ b/tools/perf/util/string.c
@@ -1,5 +1,8 @@
+#define _GNU_SOURCE
#include <string.h>
#include <stdlib.h>
+
+#undef _GNU_SOURCE
#include "string.h"
#include "util.h"
--
1.6.0.3
--
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