Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1164693AbdDXE0s (ORCPT ); Mon, 24 Apr 2017 00:26:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:45047 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1164639AbdDXE0l (ORCPT ); Mon, 24 Apr 2017 00:26:41 -0400 From: Tony Jones To: mingo@kernel.org Cc: Tony Jones , Andi Kleen , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] perf tools: Guard _GNU_SOURCE in pmu-events/jevents.c Date: Sun, 23 Apr 2017 21:26:32 -0700 Message-Id: <20170424042633.14423-1-tonyj@suse.de> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 612 Lines: 22 Guard _GNU_SOURCE (as done in pt-decoder/intel-pt-decoder.c) to prevent possible redefinition error. Signed-off-by: Tony Jones --- tools/perf/pmu-events/jevents.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c index baa073f38334..b6300e875b87 100644 --- a/tools/perf/pmu-events/jevents.c +++ b/tools/perf/pmu-events/jevents.c @@ -1,5 +1,7 @@ #define _XOPEN_SOURCE 500 /* needed for nftw() */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE /* needed for asprintf() */ +#endif /* Parse event JSON files */ -- 2.11.0