From patchwork Wed Nov 8 12:52:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 10048459 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9B23460247 for ; Wed, 8 Nov 2017 12:55:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D8522A335 for ; Wed, 8 Nov 2017 12:55:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 825132A55F; Wed, 8 Nov 2017 12:55:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7D57929222 for ; Wed, 8 Nov 2017 12:55:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCPqr-0002UE-B8; Wed, 08 Nov 2017 12:53:05 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCPqq-0002U8-6c for xen-devel@lists.xenproject.org; Wed, 08 Nov 2017 12:53:04 +0000 Received: from [193.109.254.147] by server-11.bemta-6.messagelabs.com id 56/CD-20813-F2EF20A5; Wed, 08 Nov 2017 12:53:03 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKIsWRWlGSWpSXmKPExsXitHRDpK7+P6Y ogxX/mS2+b5nM5MDocfjDFZYAxijWzLyk/IoE1ozGt1cYC05zV7R/F29gbOHqYuTkkBDwl/jS fJgRxGYT0JG4OHcnWxcjB4eIgIrE7b0GXYxcHMwCcxglLvx7xwRSIyzgKHG76zg7iM0CVHPlx V2wOK+ApcTvc0uZIWbqSTR/OskOEReUODnzCQuIzSygKdG6/Tc7hC0v0bx1Nli9kICiRP+8B2 wTGHlmIWmZhaRlFpKWBYzMqxjVi1OLylKLdC31kooy0zNKchMzc3QNDcz0clOLixPTU3MSk4r 1kvNzNzECA4cBCHYw3t0UcIhRkoNJSZT3wSumKCG+pPyUyozE4oz4otKc1OJDjDIcHEoSvBf/ AOUEi1LTUyvSMnOAIQyTluDgURLhfQ6S5i0uSMwtzkyHSJ1iNOZ4NvN1AzPHtKutTcxCLHn5e alS4rzLQEoFQEozSvPgBsFi6xKjrJQwLyPQaUI8BalFuZklqPKvGMU5GJWEed+BTOHJzCuB2/ cK6BQmoFP2hzCAnFKSiJCSamCUnjapU99+wt4J30z4j35PO+DhYXV8/43GG48tdi7ZGjg3Nqb jh/2qvem64Z28F6o3ajgdZtEqVZfb6PfQeeXzJuaNO9gf/orymeG4+LlJN+fPxIbvbH/b7xxg yNfPTChTUSxYN+HynqfHdj2PUZm1fcLk+cYZDQHFcY+ffmd8rcvwpmffTKbzSizFGYmGWsxFx YkA6FbcXKgCAAA= X-Env-Sender: prvs=478a3257a=roger.pau@citrix.com X-Msg-Ref: server-8.tower-27.messagelabs.com!1510145581!105288658!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 2452 invoked from network); 8 Nov 2017 12:53:02 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-8.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 8 Nov 2017 12:53:02 -0000 X-IronPort-AV: E=Sophos;i="5.44,364,1505779200"; d="scan'208";a="450786091" From: Roger Pau Monne To: Date: Wed, 8 Nov 2017 12:52:57 +0000 Message-ID: <20171108125257.90234-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.13.6 (Apple Git-96) MIME-Version: 1.0 Cc: Wei Liu , Julien Grall , Ian Jackson , Roger Pau Monne Subject: [Xen-devel] [PATCH for-4.10] libevtchn: fix build on non-Linux hosts X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Non-Linux hosts (where osdep_evtchn_restrict is not yet supported) made use of errno without including errno.h, fix this by including the header. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu --- Cc: Ian Jackson Cc: Wei Liu Cc: Julien Grall --- Build fix for 4.10: it only affects non-Linux, and without this fix the tools cannot be build. --- tools/libs/evtchn/freebsd.c | 1 + tools/libs/evtchn/netbsd.c | 1 + tools/libs/evtchn/solaris.c | 1 + 3 files changed, 3 insertions(+) diff --git a/tools/libs/evtchn/freebsd.c b/tools/libs/evtchn/freebsd.c index ba82f06311..6564ed4c44 100644 --- a/tools/libs/evtchn/freebsd.c +++ b/tools/libs/evtchn/freebsd.c @@ -19,6 +19,7 @@ * Split off from xc_freebsd_osdep.c */ +#include #include #include diff --git a/tools/libs/evtchn/netbsd.c b/tools/libs/evtchn/netbsd.c index 5ce3a35f80..8b8545d2f9 100644 --- a/tools/libs/evtchn/netbsd.c +++ b/tools/libs/evtchn/netbsd.c @@ -19,6 +19,7 @@ * Split out from xc_netbsd.c */ +#include #include #include diff --git a/tools/libs/evtchn/solaris.c b/tools/libs/evtchn/solaris.c index f718989450..dd41f62a24 100644 --- a/tools/libs/evtchn/solaris.c +++ b/tools/libs/evtchn/solaris.c @@ -19,6 +19,7 @@ * Split out from xc_solaris.c */ +#include #include #include