From nobody Sun Feb 8 10:21:44 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594893767; cv=none; d=zohomail.com; s=zohoarc; b=cjxfnNi7qXStTVN9xt5S73gwrAvsZy+a9Jz0VJvOR8V+42UFlKZotOvEJpZ8AHRC2b7J2AbGtPZH/E8WPM04g0byX0Gk/rIHYrZBxr1+YYfIqrPpX6EQ/i0J9RVjoCa7gfePbyGmqLYC8XZW6TDV/8amlhOgvvmhpxgWbj3io4U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594893767; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=jA1iU0PmaMJNx3dcv1JPaIuisiaSBSXqm0HytJCYJj0=; b=Exy8aIW+GB5lUvVz9DWH+8JfJjiiYsPCsEFnNvE1ZhyDeWFa05QT9ZxCFKFJup70tVkT06e4pOGXD4bxw2105VVsmizl2OrP9RNdwqrVR40sElt3/y59qW6L1Rchlt7OXU0j/ZMZDMaIonxcRtj6Nog0rrLx5usQtcWMMlMOI3E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1594893767148599.2101411504235; Thu, 16 Jul 2020 03:02:47 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-23-RYMOyhp-P8SHCLMz0WvD7A-1; Thu, 16 Jul 2020 06:02:41 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E3A8D100F8C4; Thu, 16 Jul 2020 10:02:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 62B218C8CC; Thu, 16 Jul 2020 10:02:06 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2946296236; Thu, 16 Jul 2020 10:02:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06GA0oRT015529 for ; Thu, 16 Jul 2020 06:00:50 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9857B2DE71; Thu, 16 Jul 2020 10:00:50 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id EFB012DE6F for ; Thu, 16 Jul 2020 10:00:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594893766; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=jA1iU0PmaMJNx3dcv1JPaIuisiaSBSXqm0HytJCYJj0=; b=UI9nTmd9j1gDwfHq87Hse76/HeykX6vWQ72BOIfFHCOK05DjaUTR9ssi8Yq7xEfjP12rSk wM7S5j7XfW3d2RG2AvVBAznnGQcIYwPL86V2A4A0dTzUi6SVBt0tG5d+vcO49wRENmKWnS AQCB50lWO61tPiSWJLIQY3wiaXhgtHQ= X-MC-Unique: RYMOyhp-P8SHCLMz0WvD7A-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 029/351] meson: add members check Date: Thu, 16 Jul 2020 11:54:25 +0200 Message-Id: <5c2ef75133fed0dd5018c1c00bb2871bd31fccc6.1594891445.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- configure.ac | 9 --------- meson.build | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 69067091f09..a426ba2a355 100644 --- a/configure.ac +++ b/configure.ac @@ -429,15 +429,6 @@ then fi AM_CONDITIONAL([WITH_NODE_DEVICES], [test "$with_nodedev" =3D "yes"]) =20 -# Check for Linux vs. BSD ifreq members -AC_CHECK_MEMBERS([struct ifreq.ifr_newname, - struct ifreq.ifr_ifindex, - struct ifreq.ifr_index, - struct ifreq.ifr_hwaddr], - [], [], - [#include - #include - ]) =20 # Check for BSD kvm (kernel memory interface) if test $with_freebsd =3D yes; then diff --git a/meson.build b/meson.build index aa492c9549a..d474745f31e 100644 --- a/meson.build +++ b/meson.build @@ -835,6 +835,25 @@ if host_machine.system() =3D=3D 'windows' endif =20 =20 +# check various members + +members =3D [ + # Check for Linux vs. BSD ifreq members + [ 'struct ifreq', 'ifr_newname', '#include \n#include ' ], + [ 'struct ifreq', 'ifr_ifindex', '#include \n#include ' ], + [ 'struct ifreq', 'ifr_index', '#include \n#include ' ], + [ 'struct ifreq', 'ifr_hwaddr', '#include \n#include ' ], +] + +foreach member : members + if cc.has_member(member[0], member[1], prefix: member[2]) + type =3D member[0].underscorify().to_upper() + member =3D member[1].underscorify().to_upper() + conf.set('HAVE_@0@_@1@'.format(type, member), 1) + endif +endforeach + + # define top include directory =20 top_inc_dir =3D include_directories('.') --=20 2.26.2