From nobody Sat Feb 7 14:23:42 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1606907211; cv=none; d=zohomail.com; s=zohoarc; b=Kxj9dE5Ad5RgUsr041GBRCUswFWx/vVcgXq5JZeLgOJm7i2Mq+P3iRX/8MGe5P7Yat3xf22bI3yTTce2gaxzIAhqIoStv8HItXA/ynVsuYi59VQOcTamnCVkY98iT8W76t4oS5pjb6WfCsdaWI0QXfmkNqjgZIpK+xDxEBVL1cw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606907211; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Sn2SIc/m8b/yIfSG+jDGefMOdHAUMvY2swaanvb4Q7M=; b=kMH3g7XNGayprcFltJ4DG+tfMEGxvjZDwmMJK3hzJdn84OAoQpsibDGPFP1lt0SHpY1QlvS71VOEfvre5Fjlogt5lwRtSW0tyomL0oiUX+WHRw4SVjHCP8rnp8wbzCVruEzxoq2LpGy2MRgs5Y4E86hbtV3BJl23Rn9TO2F1XCM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 1606907211132363.5743730725245; Wed, 2 Dec 2020 03:06:51 -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-554-Xvt1LjXTMH2Wtgk0gCW2Uw-1; Wed, 02 Dec 2020 06:06:47 -0500 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 C667F1005D77; Wed, 2 Dec 2020 11:06:41 +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 4521A9CA0; Wed, 2 Dec 2020 11:06:41 +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 894FB180954D; Wed, 2 Dec 2020 11:06:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0B2B6c04016897 for ; Wed, 2 Dec 2020 06:06:38 -0500 Received: by smtp.corp.redhat.com (Postfix) id 59B0460C0F; Wed, 2 Dec 2020 11:06:38 +0000 (UTC) Received: from fedora.redhat.com (ovpn-115-57.ams2.redhat.com [10.36.115.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6643B60BFA; Wed, 2 Dec 2020 11:06:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606907209; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Sn2SIc/m8b/yIfSG+jDGefMOdHAUMvY2swaanvb4Q7M=; b=dL4TgfO3edLZ5wkFzOxepOsV2EQWyKXmtKxb7tOeKOkJ484CYxLDslycpc4P+VRjfPIlgh 4eBEklUUwGUiqGOfRZ6gxMWW/iTJphK5vDCvOiaHb0K9E6kWKoo9abO65CfO/+uZfOghSf UkxmYZ7nMY9bxMJBYHtwtXnM6EZsYjE= X-MC-Unique: Xvt1LjXTMH2Wtgk0gCW2Uw-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH] meson: add winsock2 library on windows builds Date: Wed, 2 Dec 2020 11:06:26 +0000 Message-Id: <20201202110625.2400523-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) If building for windows with curl disabled we get build failures due to missing ws2_32 library needed for winsock2. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Pavel Hrdina --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 01e7fbd409..b280809a65 100644 --- a/meson.build +++ b/meson.build @@ -1368,10 +1368,12 @@ libutil_dep =3D cc.find_library('util', required: f= alse) if host_machine.system() =3D=3D 'windows' ole32_dep =3D cc.find_library('ole32') oleaut32_dep =3D cc.find_library('oleaut32') + winsock2_dep =3D cc.find_library('ws2_32') win32_dep =3D declare_dependency( dependencies: [ ole32_dep, oleaut32_dep, + winsock2_dep, ], ) if get_option('default_library') =3D=3D 'static' --=20 2.28.0