Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EC75DEF06E3 for ; Sun, 8 Feb 2026 06:01:04 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1voxqR-0000n3-Hh; Sun, 08 Feb 2026 01:00:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpm-0000R6-Ip; Sun, 08 Feb 2026 00:59:55 -0500 Received: from mail-4317.protonmail.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxph-0007VT-Ee; Sun, 08 Feb 2026 00:59:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zamaudio.com; s=protonmail3; t=1770530382; x=1770789582; bh=v+3r1FrmqevCgJnc8NlPIs5RUlRvtA5aa2esuxBc84k=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=YoQvYfPHDVmnDqK43cEMgWal0gvDyYDSayrh9q4X9ufiVFDx/E0UBRWvk0sPzfIIy dMq7lkP7gsaqdK7Zc5SnphlNsjyDiXyxrCCuIoGEdzgmcOjQJzalqev5Pe5H5LharB P7qy3oERveQbhIjpK92AtF9EkySQpdoreeI+OaPVurrBnWTIarM4scfdaL1v9uD1a0 g9c3yO5uYqV5dgK0YSIWTbE2UwEoeqHqIdG6T2gwgNHj3cY5B8jx7pNcmoTTp6oLfD RoE5+AcbGE7pp4PciPbzDn4xe4EIy1emwtGnFEN+7wMBxRStBrT7XnQKdgI6BzODEU zSzjU0WgF3n7A== Date: Sun, 08 Feb 2026 05:59:38 +0000 To: bug-hurd@gnu.org From: Damien Zammit Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, manolodemedici@gmail.com, pbonzini@redhat.com, stefanb@linux.ibm.com, peter.maydell@linaro.org, kwolf@redhat.com, berrange@redhat.com, eblake@redhat.com, bugaevc@gmail.com Subject: [PATCH v5 4/5 qemu] block/file-posix: Clean up sys/ioctl import Message-ID: <20260208055858.2166524-5-damien@zamaudio.com> In-Reply-To: <20260208055858.2166524-1-damien@zamaudio.com> References: <20260208055858.2166524-1-damien@zamaudio.com> Feedback-ID: 43209410:user:proton X-Pm-Message-ID: 8ddd599e21def8fd100c0070f1b7f9b4e473317b MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.17; envelope-from=damien@zamaudio.com; helo=mail-4317.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Since all platforms except sun include this header, clean up the ifdefs. Signed-off-by: Damien Zammit --- block/file-posix.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/block/file-posix.c b/block/file-posix.c index 6265d2e248..8a3ba5eecb 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -43,9 +43,11 @@ #include "scsi/constants.h" #include "scsi/utils.h" =20 -#if defined(__APPLE__) && (__MACH__) +#ifndef __sun__ #include -#if defined(HAVE_HOST_BLOCK_DEVICE) +#endif + +#if defined(__APPLE__) && (__MACH__) && defined(HAVE_HOST_BLOCK_DEVICE) #include #include #include @@ -57,7 +59,6 @@ //#include #include #include -#endif /* defined(HAVE_HOST_BLOCK_DEVICE) */ #endif =20 #ifdef __sun__ @@ -65,7 +66,6 @@ #include #endif #ifdef __linux__ -#include #include #include #include @@ -95,27 +95,20 @@ #endif =20 #ifdef __OpenBSD__ -#include #include #include #endif =20 #ifdef __NetBSD__ -#include #include #include #include #endif =20 #ifdef __DragonFly__ -#include #include #endif =20 -#ifdef EMSCRIPTEN -#include -#endif - /* OS X does not have O_DSYNC */ #ifndef O_DSYNC #ifdef O_SYNC --=20 2.51.0