From: john.levon@sun.com Subject: [PATCH] Fix domctl GCC dependency Date: Mon, 10 Dec 2007 12:14:46 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # 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 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;