]> xenbits.xensource.com Git - libvirt.git/commitdiff
xen: Fix inside_daemon beeing unused when libvirtd is disabled
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 23 Apr 2010 16:12:09 +0000 (18:12 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 23 Apr 2010 17:51:00 +0000 (19:51 +0200)
The defined __sun is there, because inside_daemon is used in xenUnifiedOpen
if __sun is defined.

src/xen/xen_driver.c

index 5ab169dbb943452cee5b231b0df35580ace6faac..b6dcf8d08d218143449437554a3faa532e120e77 100644 (file)
@@ -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__,           \