From nobody Mon Apr 29 01:33:44 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1600838696; cv=none; d=zohomail.com; s=zohoarc; b=muGRvEE/0VyCxpHIgqFNuf80PbaGhna+c0+gk6KmfaRhTnPjkgLsbQIZ7Zl8fJnbf5Nv8W5I65KBk7lVhgN+D22UfK4xPxceWUXhpPEpn9hKV2luHG1I/t8eewwDzhgstzQKxGiDKj5egj665OLzsryfij6gM6D8a2Zz9zKakKA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600838696; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Y3ioi0GHlqq5R8420X951GHrFsZuID65/AlBGe4+uJI=; b=k/9HVk/fqdfDYp3vHoohRbKs73ewItXj9Xu8b4ImxH0fOCQE4qT5bdr3C0B3CA9Fq7+LDkbIG1KTcLShMEl2VxwptU0lB3zHxLapzcU2LgO6v9th9qLuW04GccfFLwhfEymzNE96rhnuWVHTGeI78+jAekxOxx5TjthD7TB3bQo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 160083869670413.774678356322056; Tue, 22 Sep 2020 22:24:56 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kKxGD-00025x-O7; Wed, 23 Sep 2020 05:24:09 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kKxGC-00025s-FN for xen-devel@lists.xenproject.org; Wed, 23 Sep 2020 05:24:08 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 4a300e74-1dff-473d-b8d4-6c32974861d4; Wed, 23 Sep 2020 05:24:07 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 6ABDDAC19; Wed, 23 Sep 2020 05:24:42 +0000 (UTC) X-Inumbo-ID: 4a300e74-1dff-473d-b8d4-6c32974861d4 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1600838646; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Y3ioi0GHlqq5R8420X951GHrFsZuID65/AlBGe4+uJI=; b=RUT9iEX2Fst/ABXFgl9W0VtG4TBXeikFr3JdbBlulAhQCNuciX8nEJihXDWfxlmLYaFm9F gGpV3dOxBZE00o2X8d/8whPBu8hFCHmXiqZ9hUEJaIm5/1TrPF51c0ft1AeyfsGNRiQuwx VrZhmpTaSaRokaCoMTK1tcC1gi3iieo= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Ian Jackson , Wei Liu , Andrew Cooper Subject: [PATCH] tools/libs/guest: fix out of tree builds of libxenguest users Date: Wed, 23 Sep 2020 07:24:01 +0200 Message-Id: <20200923052401.24917-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: pass (identity @suse.com) Content-Type: text/plain; charset="utf-8" xenguest.h includes xenctrl_dom.h, which is including the Xen internal xen/libelf/libelf.h. This results in build failures for components using libxenguest when being built outside the Xen build environment. Fix that by guarding the include of xenctrl_dom.h with "#ifdef __XEN_TOOLS_". Fixes: 7e0165c19387 ("tools/libxc: untangle libxenctrl from libxenguest") Reported-by: Andrew Cooper Signed-off-by: Juergen Gross --- tools/libs/guest/include/xenguest.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/libs/guest/include/xenguest.h b/tools/libs/guest/include= /xenguest.h index 4643384790..5cd502f644 100644 --- a/tools/libs/guest/include/xenguest.h +++ b/tools/libs/guest/include/xenguest.h @@ -22,7 +22,9 @@ #ifndef XENGUEST_H #define XENGUEST_H =20 +#ifdef __XEN_TOOLS__ #include +#endif =20 #define XC_NUMA_NO_NODE (~0U) =20 --=20 2.26.2