Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp871497ybg; Fri, 18 Oct 2019 08:35:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+MfmRCJhgx8yqX8QV6CwpprUFf8N7HkBb7D830yQ17RFH1mF1xcFuoSy3AEPzyWXyG+aC X-Received: by 2002:a17:906:2490:: with SMTP id e16mr9431472ejb.182.1571412944150; Fri, 18 Oct 2019 08:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571412944; cv=none; d=google.com; s=arc-20160816; b=KyvaBX8/Ts0m1CkY+h3Ew1ZoTE7cANaiXB0/JDzeCjnMPJUMZWionCz+ZFo3xWmQ1f ++e8zoMa/aPceVCz2ayJEKgx9NXzqW+AQG24Ez+1fvx/VYL+Guy/o8lRRfOyLWEDogBr 5EPJH17Zuz8UFvKWqNJoUkLd7K1x6mcRcZRS3FRM7+npcR7WsDJE7gVowo888GWDKCnH NWwOsyVOU1sz3yQBWhvGNg4JcS+pHIOL91zoBBwiASy/v81kUE3NMl3M9FTWA1THdCCH gmQ5a1jNTHQf/U5LBc3a8QczYorKVuoKI2ivZUri0XZp78dLYdlqZcwlgei2/wdo+FrZ P41g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=uF1HDjFA1SuGdMDnovFqv/vYUzh6u0xI9wXlwqJFD+U=; b=dUi1HNAqXN+PHC+BKo9g015ITkwsBHLt7tiIAmOzDqBK7GhPiKJSbJoRphCMeVBOx9 +yp9CVyZi4J1ClXWGV8cxE/BKfWZV8qpwVw9o6k0e1ANg60aVOWaEot/W/GzCiMbtiWQ O3S7ppfmG7nHLNF8BFnqbxvXVIZpX3lvsmO2YhXkG1sCqCOtRCUgO/m6jA5F7gv7vRn4 b9fl/+aUydYtLfUrmkfrBleSrvoAHfOUKG6/DapTZmUnRHZTZld0Xc1V84rQSGOfM/EA 5p/eno0Uo2BGUuvQlN714Z3sXH11QSVs3iikg2Y9ESHdUYiDU7UzYoWkuywBM6AKDBBR geTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si3942285edd.447.2019.10.18.08.35.20; Fri, 18 Oct 2019 08:35:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409229AbfJQK7j (ORCPT + 99 others); Thu, 17 Oct 2019 06:59:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60494 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729441AbfJQK7f (ORCPT ); Thu, 17 Oct 2019 06:59:35 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1FCCB30821BF; Thu, 17 Oct 2019 10:59:35 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id CDF155D70D; Thu, 17 Oct 2019 10:59:32 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Andi Kleen , Stephane Eranian , Jin Yao , Alexey Budankov Subject: [PATCH 05/10] libperf: Add _GNU_SOURCE define to compilation Date: Thu, 17 Oct 2019 12:59:13 +0200 Message-Id: <20191017105918.20873-6-jolsa@kernel.org> In-Reply-To: <20191017105918.20873-1-jolsa@kernel.org> References: <20191017105918.20873-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Thu, 17 Oct 2019 10:59:35 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Link: http://lkml.kernel.org/n/tip-m7t1e9kgea4jc3piyvjju7ps@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/Makefile | 1 + tools/perf/lib/tests/Makefile | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tools/perf/lib/Makefile b/tools/perf/lib/Makefile index 0f233638ef1f..20396f68fcad 100644 --- a/tools/perf/lib/Makefile +++ b/tools/perf/lib/Makefile @@ -73,6 +73,7 @@ override CFLAGS += -Werror -Wall override CFLAGS += -fPIC override CFLAGS += $(INCLUDES) override CFLAGS += -fvisibility=hidden +override CFLAGS += -D_GNU_SOURCE all: diff --git a/tools/perf/lib/tests/Makefile b/tools/perf/lib/tests/Makefile index a43cd08c5c03..78c3d8c83c53 100644 --- a/tools/perf/lib/tests/Makefile +++ b/tools/perf/lib/tests/Makefile @@ -12,6 +12,8 @@ else CFLAGS := -g -Wall endif +CFLAGS += -D_GNU_SOURCE + all: include $(srctree)/tools/scripts/Makefile.include -- 2.21.0