This code compiles only on Linux. Therefore the condition we
check is always true.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
}
-#ifdef __linux__
static int
lxcDomainInterfaceStats(virDomainPtr dom,
const char *path,
virDomainObjEndAPI(&vm);
return ret;
}
-#else
-static int
-lxcDomainInterfaceStats(virDomainPtr dom,
- const char *path ATTRIBUTE_UNUSED,
- virDomainInterfaceStatsPtr stats ATTRIBUTE_UNUSED)
-{
- virReportUnsupportedError();
- return -1;
-}
-#endif
+
static int lxcDomainGetAutostart(virDomainPtr dom,
int *autostart)