From: Matthias Bolte Date: Fri, 23 Apr 2010 16:12:09 +0000 (+0200) Subject: xen: Fix inside_daemon beeing unused when libvirtd is disabled X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=87506c2bcfb61df5f4736864dfad8a49fc816f36;p=libvirt.git xen: Fix inside_daemon beeing unused when libvirtd is disabled The defined __sun is there, because inside_daemon is used in xenUnifiedOpen if __sun is defined. --- diff --git a/src/xen/xen_driver.c b/src/xen/xen_driver.c index 5ab169dbb9..b6dcf8d08d 100644 --- a/src/xen/xen_driver.c +++ b/src/xen/xen_driver.c @@ -70,7 +70,9 @@ static struct xenUnifiedDriver const * const drivers[XEN_UNIFIED_NR_DRIVERS] = { #endif }; +#if defined WITH_LIBVIRTD || defined __sun static int inside_daemon; +#endif #define xenUnifiedError(code, ...) \ virReportErrorHelper(NULL, VIR_FROM_XEN, code, __FILE__, \