From nobody Sat Feb 7 08:23:05 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 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 1580217304944728.8094982016113; Tue, 28 Jan 2020 05:15:04 -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-222-jjEh5aPfNxeue0JCNGZ8Aw-1; Tue, 28 Jan 2020 08:14:16 -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 DC0D318A6EDD; Tue, 28 Jan 2020 13:14:10 +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 B16145E24C; Tue, 28 Jan 2020 13:14:10 +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 623D4180338F; Tue, 28 Jan 2020 13:14:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 00SDE9iV019620 for ; Tue, 28 Jan 2020 08:14:10 -0500 Received: by smtp.corp.redhat.com (Postfix) id F056F1036D1A; Tue, 28 Jan 2020 13:14:09 +0000 (UTC) Received: from domokun.gsslab.fab.redhat.com (unknown [10.33.8.110]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3C2041001DD8; Tue, 28 Jan 2020 13:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580217303; 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=yow4UtGuL8vp48vImli4VBUJJ4139dgLvHiqQAHfMfc=; b=DWEQvPYzRV3j+XYRpYfaboZnaHJTGeBtbL8OgqdUGzP3EMaa6/0XwqzOwILtYkUXHdutex 7njdPnQGXJGlKZOje3Oki1egKNUXpmAYgtNFpfVjZ+NbtPTvjChE3Aae8Wn19SlPen5rMg yBVBolkFdBz1/NqmCcIH5yTWTsL3F6w= From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v2 42/56] src: conditionalize / remove use of poll.h Date: Tue, 28 Jan 2020 13:11:23 +0000 Message-Id: <20200128131137.1762449-43-berrange@redhat.com> In-Reply-To: <20200128131137.1762449-1-berrange@redhat.com> References: <20200128131137.1762449-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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 X-MC-Unique: jjEh5aPfNxeue0JCNGZ8Aw-1 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" Remove imports of poll.h which are redundant, and conditionalize remaining usage that needs to compile on Windows platforms. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Pavel Hrdina --- src/util/virpolkit.c | 2 +- src/util/virutil.c | 1 - tests/commandhelper.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util/virpolkit.c b/src/util/virpolkit.c index 88bcc64472..0db7bf0747 100644 --- a/src/util/virpolkit.c +++ b/src/util/virpolkit.c @@ -20,7 +20,6 @@ */ =20 #include -#include =20 #include "virpolkit.h" #include "virerror.h" @@ -36,6 +35,7 @@ VIR_LOG_INIT("util.polkit"); =20 #if WITH_POLKIT +# include =20 struct _virPolkitAgent { virCommandPtr cmd; diff --git a/src/util/virutil.c b/src/util/virutil.c index 830f082a77..fa6b56fd79 100644 --- a/src/util/virutil.c +++ b/src/util/virutil.c @@ -25,7 +25,6 @@ =20 #include #include -#include #include =20 #ifdef WIN32 diff --git a/tests/commandhelper.c b/tests/commandhelper.c index a7a3c44e33..b9677f2caa 100644 --- a/tests/commandhelper.c +++ b/tests/commandhelper.c @@ -23,13 +23,13 @@ #include #include #include -#include =20 #include "internal.h" #define NO_LIBVIRT #include "testutils.h" =20 #ifndef WIN32 +# include =20 /* Some UNIX lack it in headers & it doesn't hurt to redeclare */ extern char **environ; --=20 2.24.1