From: "Christoph Egger" Subject: [PATCH] Fix build error for PV guests Date: Mon, 17 Sep 2007 16:00:15 +0200 Message-ID: <200709171600.15235.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_vho7Gg5Jj+Z8NYY" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_vho7Gg5Jj+Z8NYY Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline DEFINE_XEN_GUEST_HANDLE is evaluated by the pre-processor twice. Do this also for XEN_GUEST_HANDLE_64. This fixes a build error for PV guests (OpenBSD, NetBSD) where the use of XEN_GUEST_HANDLE_64(uint8_t) leads to a build error because uint8_t is a #define and not a typedef. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_vho7Gg5Jj+Z8NYY Content-Type: text/x-diff; charset=us-ascii; name=xen-x86-32.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen-x86-32.diff diff -r a00cc97b392a xen/include/public/arch-x86/xen-x86_32.h --- a/xen/include/public/arch-x86/xen-x86_32.h Wed Sep 12 09:43:33 2007 +0100 +++ b/xen/include/public/arch-x86/xen-x86_32.h Mon Sep 17 15:57:18 2007 +0000 @@ -119,7 +119,8 @@ (hnd).p = val; \ } while ( 0 ) #define uint64_aligned_t uint64_t __attribute__((aligned(8))) -#define XEN_GUEST_HANDLE_64(name) __guest_handle_64_ ## name +#define __XEN_GUEST_HANDLE_64(name) __guest_handle_64_ ## name +#define XEN_GUEST_HANDLE_64(name) __XEN_GUEST_HANDLE_64(name) #endif #ifndef __ASSEMBLY__ --Boundary-00=_vho7Gg5Jj+Z8NYY Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_vho7Gg5Jj+Z8NYY--