diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-31 11:12:57 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-31 11:12:57 +0100 |
commit | 3d030c1164e2c7bfc4873368e14bae9cc0e23e16 (patch) | |
tree | f32c992f680247c1482b422b8de721855e0126aa | |
parent | c0e85ece47f9ef2bce69650a9854fe2a1ea7fb6a (diff) | |
download | xen-3d030c1164e2c7bfc4873368e14bae9cc0e23e16.tar.gz xen-3d030c1164e2c7bfc4873368e14bae9cc0e23e16.tar.bz2 xen-3d030c1164e2c7bfc4873368e14bae9cc0e23e16.zip |
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@amd.com>
-rw-r--r-- | xen/include/public/arch-x86/xen.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/include/public/arch-x86/xen.h b/xen/include/public/arch-x86/xen.h index 9fe0b76204..0ef702dda7 100644 --- a/xen/include/public/arch-x86/xen.h +++ b/xen/include/public/arch-x86/xen.h @@ -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) |