[xen-unstable] Fix domctl GCC dependency

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen-unstable] Fix domctl GCC dependency

Xen patchbot-unstable
# HG changeset patch
# User Keir Fraser <[hidden email]>
# Date 1197453261 0
# Node ID dad243d08849279c26057d71fba3125bf2e15bde
# Parent  0884e0a5ecc33afac8d60ea09652cf436d1a33ce
Fix domctl GCC dependency

Compilers other than GCC don't allow zero-sized structs.

Signed-off-by: John Levon <[hidden email]>
---
 xen/include/public/domctl.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r 0884e0a5ecc3 -r dad243d08849 xen/include/public/domctl.h
--- a/xen/include/public/domctl.h Wed Dec 12 09:53:00 2007 +0000
+++ b/xen/include/public/domctl.h Wed Dec 12 09:54:21 2007 +0000
@@ -544,8 +544,11 @@ 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;
+#else
+    /* Make struct non-empty: do not depend on this field name! */
+    uint64_t dummy;
 #endif
 };
 typedef struct xen_domctl_set_opt_feature xen_domctl_set_opt_feature_t;

_______________________________________________
Xen-changelog mailing list
[hidden email]
http://lists.xensource.com/xen-changelog