From nobody Sun Feb 8 12:31:36 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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=1594893671; cv=none; d=zohomail.com; s=zohoarc; b=WK/9FkFwCCACSWhTwX7Geg0KzuFvLxKTBMinEmZXBasCF0LVatXNk2DE9K/se3/65tt+x3F6BpTUF1wvonmLb7C9B+UFx9ozIxvzkpcrnEzAeq3KeYTfwipcxdTOFR4Q+2h9kdBbUjpbPvACVR7vwAQ3QEYL58pBQBhxBIMXJYI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594893671; 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=ErNz+2qlXAsEuLw0yDPPbxi5I8uiCeEjGc1MjRz5C04=; b=GTzcCzxds+n9i3kSl/fWjFfYHMbqVzK7A66F9+g5xnwCA7gI7b2deW+A0dVsOViMYmxWlqAn9IaCeO5lu0ZZZpfDWIehrnvccLws2taj06Znqjz0WCaASpMIfcayDm2OMw2omn1c5vYDBweWFmmJ0C5YnfhGZ8DpApG/htzHTvw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1594893671361310.4960321558751; Thu, 16 Jul 2020 03:01:11 -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-496-KbDcPbHYMVCD6d6Q5c4V1Q-1; Thu, 16 Jul 2020 06:01:03 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DE3B018A1DE5; Thu, 16 Jul 2020 10:00:56 +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 BF77172E4A; Thu, 16 Jul 2020 10:00:56 +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 90CED96248; Thu, 16 Jul 2020 10:00:56 +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 06GA0n4G015516 for ; Thu, 16 Jul 2020 06:00:49 -0400 Received: by smtp.corp.redhat.com (Postfix) id 98B932DE71; Thu, 16 Jul 2020 10:00:49 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 13BAF2DE6F for ; Thu, 16 Jul 2020 10:00:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594893670; 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=ErNz+2qlXAsEuLw0yDPPbxi5I8uiCeEjGc1MjRz5C04=; b=ORoKimY9QV1YVwTdxFLBuAXVi7XO6jLM56gE968iHqVXn8Z8XkpUf4D3tR5j/oK1CauRSg Hmwav3BujPDimk1ak2xVgwzcEmhj+sEP0uSWxpm7FRJjaIOcbjUgkcWlHJdMpBlFg7hbwd BQU9o/lVqwCm1tINKgVCzABgCpM/TOs= X-MC-Unique: KbDcPbHYMVCD6d6Q5c4V1Q-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 028/351] meson: add types check Date: Thu, 16 Jul 2020 11:54:24 +0200 Message-Id: <9ef8c2f2fbf6ef34325c0cca47ba32d3ba9b5628.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.11 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 | 15 --------------- meson.build | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/configure.ac b/configure.ac index 1ffa4f931ee..69067091f09 100644 --- a/configure.ac +++ b/configure.ac @@ -51,8 +51,6 @@ AC_PROG_CPP dnl get 64-int interfaces on 32-bit platforms AC_SYS_LARGEFILE =20 -AC_TYPE_UID_T - dnl Support building Win32 DLLs (must appear *before* AM_PROG_LIBTOOL) AC_LIBTOOL_WIN32_DLL =20 @@ -207,19 +205,6 @@ LIBVIRT_CHECK_YAJL =20 AC_CHECK_SIZEOF([long]) =20 -AC_CHECK_TYPE([struct ifreq], - [AC_DEFINE([HAVE_STRUCT_IFREQ],[1], - [Defined if struct ifreq exists in net/if.h])], - [], [[#include - #include - ]]) - -AC_CHECK_TYPE([struct sockpeercred], - [AC_DEFINE([HAVE_STRUCT_SOCKPEERCRED], [1], - [Defined if struct sockpeercred is available])], - [], [[#include - ]]) - =20 AC_CHECK_LIB([intl],[gettext],[]) AC_CHECK_LIB([util],[openpty],[]) diff --git a/meson.build b/meson.build index c79d557b289..aa492c9549a 100644 --- a/meson.build +++ b/meson.build @@ -808,6 +808,33 @@ if (cc.has_header_symbol('mach/clock.h', 'clock_serv_t= ') and endif =20 =20 +# check various types + +types =3D [ + [ 'struct ifreq', '#include \n#include '] , + [ 'struct sockpeercred', '#include ') + conf.set(type, 'int') + endif + endforeach +endif + + # define top include directory =20 top_inc_dir =3D include_directories('.') --=20 2.26.2