debuggers.hg
changeset 16618:dad243d08849
Fix domctl GCC dependency
Compilers other than GCC don't allow zero-sized structs.
Signed-off-by: John Levon <john.levon@sun.com>
Compilers other than GCC don't allow zero-sized structs.
Signed-off-by: John Levon <john.levon@sun.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Wed Dec 12 09:54:21 2007 +0000 (2007-12-12) |
parents | 0884e0a5ecc3 |
children | 433f6a6a862a |
files | xen/include/public/domctl.h |
line diff
1.1 --- a/xen/include/public/domctl.h Wed Dec 12 09:53:00 2007 +0000 1.2 +++ b/xen/include/public/domctl.h Wed Dec 12 09:54:21 2007 +0000 1.3 @@ -544,8 +544,11 @@ DEFINE_XEN_GUEST_HANDLE(xen_domctl_ext_v 1.4 */ 1.5 #define XEN_DOMCTL_set_opt_feature 44 1.6 struct xen_domctl_set_opt_feature { 1.7 -#ifdef __ia64__ 1.8 +#if defined(__ia64__) 1.9 struct xen_ia64_opt_feature optf; 1.10 +#else 1.11 + /* Make struct non-empty: do not depend on this field name! */ 1.12 + uint64_t dummy; 1.13 #endif 1.14 }; 1.15 typedef struct xen_domctl_set_opt_feature xen_domctl_set_opt_feature_t;