Fix domctl GCC dependency
PATCH 1/1 Fix domctl GCC dependency
# HG changeset patch
# User [email protected]
# 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 <[email protected]>
xen/include/public/domctl.h +3 -1
@@ -562,8 +562,10 @@ DEFINE_XEN_GUEST_HANDLE(xen_domctl_ext_v*/ #define XEN_DOMCTL_set_opt_feature 44struct 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 ;