]> xenbits.xensource.com Git - xen.git/commitdiff
Evaluate XEN_GUEST_HANDLE_64 twice.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 18 Sep 2007 14:09:57 +0000 (15:09 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 18 Sep 2007 14:09:57 +0000 (15:09 +0100)
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@amd.com>
xen/include/public/arch-x86/xen-x86_32.h

index bf9b1d5f31f875e42d05ecff2c1e34f324ebcada..37d3bfa183dc26ddda2b5a7dbd8a2e6556bba8d3 100644 (file)
          (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__