Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754606AbZLBGh2 (ORCPT ); Wed, 2 Dec 2009 01:37:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754447AbZLBGh1 (ORCPT ); Wed, 2 Dec 2009 01:37:27 -0500 Received: from mail.windriver.com ([147.11.1.11]:52624 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750AbZLBGh1 (ORCPT ); Wed, 2 Dec 2009 01:37:27 -0500 From: Liming Wang To: Ingo Molnar , mhiramat@redhat.com, fweisbec@gmail.com Cc: peterz@infradead.org, linux-kernel@vger.kernel.org, Liming Wang Subject: [PATCH] perf tools: Add _GNU_SOURCE macro for strndup() Date: Wed, 2 Dec 2009 14:11:46 +0800 Message-Id: <1259734306-26323-1-git-send-email-liming.wang@windriver.com> X-Mailer: git-send-email 1.6.0.3 X-OriginalArrivalTime: 02 Dec 2009 06:36:56.0958 (UTC) FILETIME=[D80CE1E0:01CA7319] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 836 Lines: 30 strndup is a GNU extension. So add _GNU_SOURCE macro to avoid compiling error. Signed-off-by: Liming Wang Acked-by: Frederic Weisbecker --- 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 #include + +#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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/