Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4259870ybp; Mon, 7 Oct 2019 05:56:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkehECLPNMAeJoNO6IoCYSr5NGuxM7srmOyjcMT04KuGmkjVAmQcVyo8aNsdS92zAp+ltm X-Received: by 2002:a17:906:5c16:: with SMTP id e22mr24399686ejq.105.1570452982818; Mon, 07 Oct 2019 05:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570452982; cv=none; d=google.com; s=arc-20160816; b=Ttj6Jxldw28cDLMPN98wma7Ce+neCDxSSy9Z/i37Cxt7SbDXsCkCXqouHcVfWcR+wB hCeRqzL+oh868MraTP9Pz/YRVu3PFtjD0Dff6vSpVcE0VBSXIgy3PlFTE5ObiwQtBJxg 5yMB4VkP7F7WGdtEKR6NRZa0A0O5R5JUx51IoVqUbAdZThEZDYXDLYeKR9G3eIjUoDYa WateT+Jhe2C33gfDL23YxgsavjGtBw5RvKHvQbNC7SbAw/tJ76rH+Kn4wBTGRl6CB73N I82i97hu3aIeUr3im7JiRJzHD65Xx83t2ERGYlKUVQqF1y0vhDQw3zJdegs82PT/gc3M aWAw== 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=uoYGMj0fLkVwy5KiMbYZQIq6w2NMvlqcSlCLpMW/BfjrXfBegy2X/ZZCUV2cJf/L4S wJwrTjIq6XSVweWl0SpC+VvBP6A2iOl/nk5c70ZK38bO+bwRIzhfg2PBCPs7OXq3rB7D xS8IfioIoOjvtdLV6UC08K0IW0bVKQw7m6bbKlQ5R16WBvpkYnB/aJTMRSupUkTxTFPC SiiWhi1CQjGtoOZlKR/6R0QjX4tHc5EHwW/HNANfMg8/M6v2snCyfrGuyrCL5eWYKV8z zSQ4Kbe1QamGjeRvefJZ2kxkOvsD8dz6JUkDmNrgQIgCTiW3S05l8jnKnC7bR8rC8af8 FjRQ== 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 q12si8224449edr.136.2019.10.07.05.55.58; Mon, 07 Oct 2019 05:56:22 -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 S1728475AbfJGMzB (ORCPT + 99 others); Mon, 7 Oct 2019 08:55:01 -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