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

[Xen-changelog] [xen-unstable] Evaluate XEN_GUEST_HANDLE_64 twice.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1190124597 -3600
# Node ID f19c741cb55fb5fc20d0a2129f93bea96670f139
# Parent  e1c80d6bf2cf2f0616ab3e5da55dcb9dada0d4a8
Evaluate XEN_GUEST_HANDLE_64 twice.

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 <Christoph.Egger@xxxxxxx>
---
 xen/include/public/arch-x86/xen-x86_32.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r e1c80d6bf2cf -r f19c741cb55f xen/include/public/arch-x86/xen-x86_32.h
--- a/xen/include/public/arch-x86/xen-x86_32.h  Tue Sep 18 15:08:11 2007 +0100
+++ b/xen/include/public/arch-x86/xen-x86_32.h  Tue Sep 18 15:09:57 2007 +0100
@@ -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__

_______________________________________________
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®.