From nobody Tue Apr 23 21:05:05 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1637668783389589.3510258509224; Tue, 23 Nov 2021 03:59:43 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-270-3kQAN6pzPg6K5kIRfQ5pzg-1; Tue, 23 Nov 2021 06:59:40 -0500 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 130611018720; Tue, 23 Nov 2021 11:59:36 +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 E910D7945D; Tue, 23 Nov 2021 11:59:35 +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 B67DD4EA37; Tue, 23 Nov 2021 11:59:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1ANBwG50019460 for ; Tue, 23 Nov 2021 06:58:16 -0500 Received: by smtp.corp.redhat.com (Postfix) id BD9492166B2F; Tue, 23 Nov 2021 11:58:16 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B68582166B25 for ; Tue, 23 Nov 2021 11:58:10 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 04CFC85A5BC for ; Tue, 23 Nov 2021 11:58:10 +0000 (UTC) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-485-auEqT8q_Ph6xCVTq30bfDw-1; Tue, 23 Nov 2021 06:58:08 -0500 Received: by mail-lf1-f45.google.com with SMTP id bu18so90668274lfb.0 for ; Tue, 23 Nov 2021 03:58:07 -0800 (PST) Received: from kloomba.my.domain ([5.227.204.99]) by smtp.gmail.com with ESMTPSA id k43sm1273816lfv.177.2021.11.23.03.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 03:58:06 -0800 (PST) X-MC-Unique: 3kQAN6pzPg6K5kIRfQ5pzg-1 X-MC-Unique: auEqT8q_Ph6xCVTq30bfDw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mW/BSAiF5v8bE/Bd9iN980IA5Qy1mZXdRZd9EKoGPTc=; b=AL96/YwVbHkYAv9TM+8wTtQl9fsJnGpwP0+rCbezhKbsJrs8Tc0B0lFHRsGtggzW9a 67kw50RLGH5x70fV+Jk03YWqM1xqdJMjyyv5ar2y3PjDXx+MgJZ+0LVl/aVZOhPJNinv TU8We4A0VBXP8Okor8pf1B4DjEMuTyKhopz7YtqgffL2K2I/mHFGNri4cEdXCuWn9QP7 4WrMTP0PpqsBVhqxb3RoZ6exceJbE9mjM9Xa6jczaCFrP/08kcqmLMcfmrl8vrlagFF0 XbGS5FhrqaS4AhKG45osJHkJzMdttp048L4mzD0sqtBl9iJhVsCCjHz6McbXHfrqNA3T eF+w== X-Gm-Message-State: AOAM533jex4BWDmRCNboVjR21ZbStaZynjS0lHK1e95NtBcEfuWk6j3G lD40bifM7oVr/5Amv5O/KkAdah0GPF2o43Wi X-Google-Smtp-Source: ABdhPJymgRjdBV7Ft37TM6h+zoyOl0moO3B5YMqu1pFIPH8GpEUrfkY/T7AEqu2EkPZZobALV/VLxg== X-Received: by 2002:ac2:5444:: with SMTP id d4mr4174294lfn.678.1637668686383; Tue, 23 Nov 2021 03:58:06 -0800 (PST) From: Roman Bogorodskiy To: libvir-list@redhat.com Subject: [PATCH] meson: fix cpuset_getaffinity() detection Date: Tue, 23 Nov 2021 15:57:56 +0400 Message-Id: <20211123115756.12264-1-bogorodskiy@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Cc: Roman Bogorodskiy 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.16 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-ZM-MESSAGEID: 1637668784368100001 Content-Type: text/plain; charset="utf-8" The cpuset_getaffinity() function is checked in sys/cpuset.h to see if BSD CPU affinity APIs are available. This check requires including sys/param.h to work properly, otherwise the test program fails with unrelated errors like: /usr/include/sys/cpuset.h:155:1: error: unknown type name '__BEGIN_DECLS' __BEGIN_DECLS ^ /usr/include/sys/cpuset.h:156:12: error: unknown type name 'cpusetid_t'; did you mean 'cpuset_t'? int cpuset(cpusetid_t *); and so forth. Signed-off-by: Roman Bogorodskiy Reviewed-by: Martin Kletzander Reviewed-by: Michal Privoznik --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e4f36e8574..ad0cd44aca 100644 --- a/meson.build +++ b/meson.build @@ -709,7 +709,7 @@ if (cc.has_header_symbol('net/if_bridgevar.h', 'BRDGSFD= ', prefix: brd_required_h endif =20 # Check for BSD CPU affinity availability -if cc.has_header_symbol('sys/cpuset.h', 'cpuset_getaffinity') +if cc.has_header_symbol('sys/cpuset.h', 'cpuset_getaffinity', prefix: '#in= clude ') conf.set('WITH_BSD_CPU_AFFINITY', 1) endif =20 --=20 2.33.1