# HG changeset patch
# User john.levon@sun.com
# Date 1197317681 28800
# Node ID c65a528cfe746e70a1e2b002c0d355c48c05615d
# Parent 02adbed1652bc05cc9196d1ff6f91e1f3cbda0b8
Fix domctl GCC dependency
Compilers other than GCC don''t allow zero-sized structs.
Signed-off-by: John Levon <john.levon@sun.com>
diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h
--- a/xen/include/public/domctl.h
+++ b/xen/include/public/domctl.h
@@ -562,8 +562,10 @@ DEFINE_XEN_GUEST_HANDLE(xen_domctl_ext_v
*/
#define XEN_DOMCTL_set_opt_feature 44
struct xen_domctl_set_opt_feature {
-#ifdef __ia64__
+#if defined(__ia64__)
struct xen_ia64_opt_feature optf;
+#elif !defined(__GNUC__)
+ uint64_t dummy;
#endif
};
typedef struct xen_domctl_set_opt_feature xen_domctl_set_opt_feature_t;
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel