Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp796523ybe; Fri, 13 Sep 2019 06:31:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxg3ZJKIgBSlcjjRWCSSfsNqfZCz057RZhvdmlD+hnwwcEYxIXQL2+HWqLjYS+6m0zOlAmY X-Received: by 2002:aa7:c415:: with SMTP id j21mr40689169edq.282.1568381512941; Fri, 13 Sep 2019 06:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568381512; cv=none; d=google.com; s=arc-20160816; b=0Qx7JCCAoBYO1S+86QNqx/06Rv8p5Fd89GJVswlqUc6wNxIzcMv8GTo2K73HPm5UTz JJnfhhlr93hGDrElKd98NoFsqd0hLsfyEDsMnb2CjbadLfJtKVAdJbxlnapTZSxamgSK MewEVwPlDRCJwyc0yj2vPtKIVv+5d8WRlcHpXFBVVWAEmwhu/u5lc6tBgwqFpqmjshVz nPABy2QEfrU196jDl/IxSg5u4ZEKF+uxcjh5/Jqs8xo9yIIw7dxquHeq2oLoFYCUgU/I 7R8wIKfdpFT4qyljRv7S+IXLNF6nyZWImrWAWDrg1fYgvH0N9RhLXfrVJj9doW+b4kD4 t0ew== 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=LuI1Ki8EPZCCjXeNPpWjnWEqAD58TdY5831tuZzBFsxQZVJA50e9xv1exEdqqPvtd+ uDTMKyD79sf6C3YSnXpxRjV/jf76nW+oo+kcBix0PYWSYK2BFmQP0nxfp8Z/e1872HMD 2VY4El4h4qLWxDwL4fXSkK6GvTTHqCKx1U9QJ52J1sgCzJZ64P0EYYUa6Jkb4HZNA4HU ZEqTLw5mjo00vOKLmo3YsEzN7u7Bk3V0jUleXw3cGlozHjO1wY8tfGmtRC4wGVltBVMw OkFmBa0A8lF4oNzAJzqb9rFpUWHXW+qrkIDCPsnLVK5pnMxAy+I64hbfN9oNNxca99aI JFFQ== 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 gr19si8575252ejb.371.2019.09.13.06.31.24; Fri, 13 Sep 2019 06:31:52 -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 S2403851AbfIMN0o (ORCPT + 99 others); Fri, 13 Sep 2019 09:26:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49144 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391576AbfIMN0l (ORCPT ); Fri, 13 Sep 2019 09:26:41 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4531387521D; Fri, 13 Sep 2019 13:26:41 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9C56F5C1D4; Fri, 13 Sep 2019 13:26:39 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: [PATCH 68/73] libperf: Add _GNU_SOURCE define to compilation Date: Fri, 13 Sep 2019 15:23:50 +0200 Message-Id: <20190913132355.21634-69-jolsa@kernel.org> In-Reply-To: <20190913132355.21634-1-jolsa@kernel.org> References: <20190913132355.21634-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]); Fri, 13 Sep 2019 13:26:41 +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