[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] DEFINE_XEN_GUEST_HANDLE is evaluated by the pre-processor twice. Do this also for XEN_GUEST_HANDLE.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1188555177 -3600
# Node ID 0f196e11a14392b2a2554cd02b7111126b87e967
# Parent  577313e3c0a6681e97a06088d57484246cbc9664
DEFINE_XEN_GUEST_HANDLE is evaluated by the pre-processor twice. Do this also 
for XEN_GUEST_HANDLE.

This fixes a build error for PV guests (OpenBSD, NetBSD) where the use
of XEN_GUEST_HANDLE(uint8_t) leads to a build error because uint8_t is
a #define instead a typedef.

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 xen/include/public/arch-x86/xen.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 577313e3c0a6 -r 0f196e11a143 xen/include/public/arch-x86/xen.h
--- a/xen/include/public/arch-x86/xen.h Fri Aug 31 11:10:21 2007 +0100
+++ b/xen/include/public/arch-x86/xen.h Fri Aug 31 11:12:57 2007 +0100
@@ -37,7 +37,8 @@
 #endif
 
 #define DEFINE_XEN_GUEST_HANDLE(name)   __DEFINE_XEN_GUEST_HANDLE(name, name)
-#define XEN_GUEST_HANDLE(name)          __guest_handle_ ## name
+#define __XEN_GUEST_HANDLE(name)        __guest_handle_ ## name
+#define XEN_GUEST_HANDLE(name)          __XEN_GUEST_HANDLE(name)
 #define set_xen_guest_handle(hnd, val)  do { (hnd).p = val; } while (0)
 #ifdef __XEN_TOOLS__
 #define get_xen_guest_handle(val, hnd)  do { val = (hnd).p; } while (0)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.