From 87506c2bcfb61df5f4736864dfad8a49fc816f36 Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Fri, 23 Apr 2010 18:12:09 +0200 Subject: [PATCH] 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. --- src/xen/xen_driver.c | 2 ++ 1 file changed, 2 insertions(+) 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__, \ -- 2.47.2