From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0D33ECE58C for ; Mon, 7 Oct 2019 12:55:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D75920867 for ; Mon, 7 Oct 2019 12:55:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570452903; bh=f3AngrYfoygmVrQlEy/1PjIN9stcDHA5CB18RXpeG5U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=iz5TiWettXM2Mq5CePdHtboTdOpinnXhg9TTVW5joznyr4WsQRvWrzYQfaI0gxshA 6R1LzHaMZvGjd/G6HrRrDcR1c4mON76F0KITfIvpstWoTaIu0FVavZtZE7ef5PwqzW yq+lM1CZqLXYHCoaxuzQ1syxPV4EI0WUBq05ZPW0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728481AbfJGMzC (ORCPT ); Mon, 7 Oct 2019 08:55:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55680 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728428AbfJGMy7 (ORCPT ); Mon, 7 Oct 2019 08:54:59 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 492B93C918; Mon, 7 Oct 2019 12:54:59 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id A4AE75D9CC; Mon, 7 Oct 2019 12:54:57 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: [PATCH 31/36] libperf: Add _GNU_SOURCE define to compilation Date: Mon, 7 Oct 2019 14:53:39 +0200 Message-Id: <20191007125344.14268-32-jolsa@kernel.org> In-Reply-To: <20191007125344.14268-1-jolsa@kernel.org> References: <20191007125344.14268-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 07 Oct 2019 12:54:59 +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