Skip to contentSkip to conversation

fix compatibility handling of XEN_GUEST_HANDLE_00030205

PATCH New Jan Beulich 1 participant 1 message Jan 21, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix compatibility handling of XEN_GUEST_HANDLE_00030205

Using the plain type doesn't work anymore with recent changes to XEN_GUEST_HANDLE().

xen/include/public/xen-compat.h +2 -1
Index: ./xen/include/public/xen-compat.h
===================================================================
@@ -45,7 +45,8 @@
 #if __XEN_INTERFACE_VERSION__ >= 0x00030205
 #define XEN_GUEST_HANDLE_00030205(type) XEN_GUEST_HANDLE(type)
 #else
-#define XEN_GUEST_HANDLE_00030205(type) type *
+typedef void void_t;
+#define XEN_GUEST_HANDLE_00030205(type) type##_t *
 #endif
 
 #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */