From nobody Tue Feb 10 05:27:15 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1612705583; cv=none; d=zohomail.com; s=zohoarc; b=TdU9XyCsUKqFfxIRDVRayiCSEdNZO05SjbGfCDu5tO9uAceljo+6z68w72pFqrrKKE+By3eBy3J/HPujL7r0uRoqv7lquUjFBUNlhGCt2VliEEuOPQyKQBQ2vfOHzmOIIbiXX8QmoJyHwbw/3AC2JNZ27GE/BiWTtYGvJfzjVQs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612705583; 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=+okBB6/ikiynq8f0s6NVIyy+4wTBZ+cBg2gb4YX0+wk=; b=Cn6+yHE5ILeUcyUX8C3fUESPR0XftGUko9WysG+C302NhvTvehXhEQSjoGtVt1Q5y+yNJc/f+TFWijtNFGLQ8twX0jm6lGM1UCfxjiArmD+yyFq2OZGkgTzEiSeQjAvk/Mtr+4hffWBZsW/QQSbrEZIyYoCyDF1sgQgiAnQtgiU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1612705583634645.0870492655934; Sun, 7 Feb 2021 05:46:23 -0800 (PST) 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-341-tqYQsyZ7PsWuyjXKyrnvZg-1; Sun, 07 Feb 2021 08:46:19 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C8525107ACE3; Sun, 7 Feb 2021 13:46:13 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A43575D9CA; Sun, 7 Feb 2021 13:46:12 +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 D31C618095CC; Sun, 7 Feb 2021 13:46:09 +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 117Dk7Sl031804 for ; Sun, 7 Feb 2021 08:46:07 -0500 Received: by smtp.corp.redhat.com (Postfix) id 9F19019D9D; Sun, 7 Feb 2021 13:46:07 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.40.192.85]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E80CD19D9C for ; Sun, 7 Feb 2021 13:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612705582; 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=+okBB6/ikiynq8f0s6NVIyy+4wTBZ+cBg2gb4YX0+wk=; b=NJ5nK22JI5kBJERbOpfhxg4084UhhH0hA/sP4PbQt7ttmtp1HYU97uIdHbhP1iCCvgB9XU c1Mlld4YFf4eLYt4H3fwKvQLbNvoxde4HcaTdEJoY2HbtlGe038GOuG4xQqd1ojkkXb6qy nyoytksVuv3VHfjcWWpB2IJ3SyinD6M= X-MC-Unique: tqYQsyZ7PsWuyjXKyrnvZg-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 1/3] cpu: Only include if available Date: Sun, 7 Feb 2021 14:45:57 +0100 Message-Id: <20210207134559.72578-2-abologna@redhat.com> In-Reply-To: <20210207134559.72578-1-abologna@redhat.com> References: <20210207134559.72578-1-abologna@redhat.com> 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.14 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" It's glibc-specific, so it's not present on many non-Linux targets that nonetheless support aarch64. Signed-off-by: Andrea Bolognani --- meson.build | 1 + src/cpu/cpu_arm.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 095d6ca664..766bc06b61 100644 --- a/meson.build +++ b/meson.build @@ -690,6 +690,7 @@ headers =3D [ 'net/if.h', 'pty.h', 'pwd.h', + 'sys/auxv.h', 'sys/ioctl.h', 'sys/mount.h', 'sys/syscall.h', diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index 6ba5bf0724..aa3e5d8980 100644 --- a/src/cpu/cpu_arm.c +++ b/src/cpu/cpu_arm.c @@ -25,7 +25,9 @@ # if defined(WITH_ASM_HWCAP_H) # include # endif -# include +# if defined(WITH_SYS_AUXV_H) +# include +# endif #endif =20 #include "viralloc.h" --=20 2.26.2