From patchwork Fri Jan 10 04:30:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seung-Woo Kim X-Patchwork-Id: 11326585 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 990C1138C for ; Fri, 10 Jan 2020 04:27:45 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6BE1F2073A for ; Fri, 10 Jan 2020 04:27:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="H3p+RLDZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6BE1F2073A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 29E4B6E0A8; Fri, 10 Jan 2020 04:27:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTPS id D85436E0A8 for ; Fri, 10 Jan 2020 04:27:40 +0000 (UTC) Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20200110042738epoutp045ec9f7ef694b68bcc3889c2a56d93f1b~obAnBRtth2462024620epoutp04M for ; Fri, 10 Jan 2020 04:27:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20200110042738epoutp045ec9f7ef694b68bcc3889c2a56d93f1b~obAnBRtth2462024620epoutp04M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1578630458; bh=EcbPsOqLiShZBVOl65dt3Z2/wDYXiCX+Kk6h+JHs1gg=; h=From:To:Cc:Subject:Date:References:From; b=H3p+RLDZppsj5iOjrpdFrAKuupFh8CJJBLpOA5+RUSaIrYArJ+bmog+TIbQ7wShKD ERkURgjR7iKZzlUpMcXq9hkcx16qb7nf48zJFwSFAloAvejwZxYyXd/73l18tRwXcf 2Whe6Bcbhhad4ExSY+idgOmVZC/1ts5w4nP6Scwg= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20200110042738epcas1p44a0f9be9eab13872a8f299e1f508abc9~obAmqSgMm2851828518epcas1p4O; Fri, 10 Jan 2020 04:27:38 +0000 (GMT) Received: from epsmges1p2.samsung.com (unknown [182.195.40.158]) by epsnrtp2.localdomain (Postfix) with ESMTP id 47v9210qwQzMqYkw; Fri, 10 Jan 2020 04:27:37 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id A5.E5.48498.63DF71E5; Fri, 10 Jan 2020 13:27:34 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200110042734epcas1p1a80d5c2c9dd1fb3c2be7bb869cdc4311~obAjICXNt2125321253epcas1p16; Fri, 10 Jan 2020 04:27:34 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200110042734epsmtrp1f8e085cbff393f907ef742314a6b03bc~obAjHbHuQ2250122501epsmtrp1i; Fri, 10 Jan 2020 04:27:34 +0000 (GMT) X-AuditID: b6c32a36-a55ff7000001bd72-7f-5e17fd3658cb Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id EC.0C.10238.63DF71E5; Fri, 10 Jan 2020 13:27:34 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.221.222]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200110042734epsmtip2b051af97dca54e66cd763b9c8a4426e9~obAi-K7DX1117511175epsmtip2V; Fri, 10 Jan 2020 04:27:34 +0000 (GMT) From: Seung-Woo Kim To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] meson.build: Don't detect header for linux Date: Fri, 10 Jan 2020 13:30:41 +0900 Message-Id: <1578630641-5301-1-git-send-email-sw0312.kim@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrIKsWRmVeSWpSXmKPExsWy7bCmvq7ZX/E4g6O/jSyufH3PZrH21kEW i+WX1zNazJj8ks2i/9QfJgdWjx1vjzN5LN7zkslj3slAj/vdQF7fllWMAaxR2TYZqYkpqUUK qXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QMuVFMoSc0qBQgGJxcVK +nY2RfmlJakKGfnFJbZKqQUpOQWWBXrFibnFpXnpesn5uVaGBgZGpkCFCdkZNzcfYimYzVPR cv8IYwPjfK4uRk4OCQETib1LLjF1MXJxCAnsYJSY8u4XI4TziVHi18tJUJlvQM6J+ywwLffe 3GCGSOxllHi3+xgrSEJI4AujxOSPJSA2m4COxP4lv8HiIgLKEn8nrmIEsZkFMiRWzr/NDGIL CwRL9JzuYQOxWQRUJXa0P2UHsXkFXCWWLV7PCLFMQWLBvbdsEPZXVomXa1MgbBeJzi9LoeLC Eq+Ob2GHsKUkXva3QdnVEtsn/GQHOVRCoINRoqe9EeoDY4n9SycDvcYBdJCmxPpd+hBhRYmd v+dC3ckn8e5rDytIiYQAr0RHmxBEiYrEzqOT2CDCUhKzNgRDhD0k3tyF+EpIIFai/99X9gmM sr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RcboMRSnJFoqMVcVJwIAIo3ngETAgAA X-CMS-MailID: 20200110042734epcas1p1a80d5c2c9dd1fb3c2be7bb869cdc4311 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200110042734epcas1p1a80d5c2c9dd1fb3c2be7bb869cdc4311 References: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: eric.engestrom@intel.com, zeising@daemonic.se, sw0312.kim@samsung.com MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The header is not required for Linux and GNU libc 2.30 starts to warn about Linux specific header deprecation. Don't detect header for linux. Signed-off-by: Seung-Woo Kim Reviewed-by: Eric Engestrom --- Fix meson.build script instead of code itself as commented below: https://patchwork.kernel.org/patch/11325345/ --- meson.build | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 782b1a3..b1c557a 100644 --- a/meson.build +++ b/meson.build @@ -183,10 +183,17 @@ else dep_rt = [] endif dep_m = cc.find_library('m', required : false) -# From Niclas Zeising: -# FreeBSD requires sys/types.h for sys/sysctl.h, add it as part of the -# includes when checking for headers. -foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h'] +if not ['linux'].contains(host_machine.system()) + # From Niclas Zeising: + # FreeBSD requires sys/types.h for sys/sysctl.h, add it as part of the + # includes when checking for headers. + foreach header : ['sys/sysctl.h'] + config.set('HAVE_' + header.underscorify().to_upper(), + cc.compiles('#include \n#include <@0@>'.format(header), name : '@0@ works'.format(header))) + endforeach +endif +endforeach +foreach header : ['sys/select.h', 'alloca.h'] config.set('HAVE_' + header.underscorify().to_upper(), cc.compiles('#include \n#include <@0@>'.format(header), name : '@0@ works'.format(header))) endforeach