From nobody Fri May 3 23:15:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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=1583421616; cv=none; d=zohomail.com; s=zohoarc; b=W/fnphnOTtC97s98DABCmM9P4nOE9GFel347uoBq+BKLvMcLp+zE5Ism8hAsPq/MK1kvBdsZ9Fe8seV/gdMqDiKU25yY44ayUo3GsVgvHa3bL261K4pOOlzmu2zVixnOO4cVnusLhvwlfMgIMBlI40VMISx9L7oH5rvCyQA+9ws= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583421616; 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=K51DlMHwNnr6IbKrEDMn7Tp3HjQ+gLhnkwHCsiSpnPs=; b=WXTbyQycWczRmKXspu6VxZo7JtRXoUgpWRsTI5nobIJyVZSFXXqb+m+Jfpx3fsHogwH9BLlNNc5axMFUbEbvH2jCUaEXROVyH9oDeY9yUihokyEH+ZAGxV5ARAvfBTmXAKUCaZZdkG4Vc02bfJp9oU1nf2YM9z4tsCIi0YrTyf8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1583421616341163.12240683025027; Thu, 5 Mar 2020 07:20:16 -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-340-Bk5jeFDpPbKsylVyi7thRg-1; Thu, 05 Mar 2020 10:20:12 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C394419240FD; Thu, 5 Mar 2020 15:20:05 +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 54ACB60F80; Thu, 5 Mar 2020 15:20:04 +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 CEA7A1809567; Thu, 5 Mar 2020 15:20:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 025FK1ke016129 for ; Thu, 5 Mar 2020 10:20:01 -0500 Received: by smtp.corp.redhat.com (Postfix) id 00BE85DA76; Thu, 5 Mar 2020 15:20:01 +0000 (UTC) Received: from catbus.gsslab.fab.redhat.com (mustard.gsslab.fab.redhat.com [10.33.8.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id 62F785E241; Thu, 5 Mar 2020 15:19:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583421615; 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=K51DlMHwNnr6IbKrEDMn7Tp3HjQ+gLhnkwHCsiSpnPs=; b=Qq7Atj1ZQa/Yg+YW+gqa+4B0dbcthNsxGxYI/2LZV6OE51UmNkc31E03swQsXho1re3SWE PO69rqFuV4HwAHGC3GO6eTYYSGokXrKmbC5mfA/n8ZDjuTv90gIGf2aZTzexGetbDXdRpA JrSit8VFIoHDTs1AfADRoa7fSzPUrqw= X-MC-Unique: Bk5jeFDpPbKsylVyi7thRg-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [PATCH] src: add pthread_np.h include for FreeBSD Date: Thu, 5 Mar 2020 15:16:00 +0000 Message-Id: <20200305151600.2832815-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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.12 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" On FreeBSD the non-portable pthread APIs need to be obtained via the pthread_np.h header. Signed-off-by: Daniel P. Berrang=C3=A9 --- Pushed as a build fix for FreeBSD src/util/virthread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/virthread.c b/src/util/virthread.c index 40792afdc0..37b2cdfbe9 100644 --- a/src/util/virthread.c +++ b/src/util/virthread.c @@ -23,6 +23,10 @@ =20 #include "virthread.h" =20 +#ifdef __FreeBSD__ +# include +#endif + #include #include #if HAVE_SYS_SYSCALL_H --=20 2.24.1