The virCgroupValidateMachineGroup method calls some functions
which are only conditionally compiled, thus it too must be
made conditional. This fixes the build on non-Linux hosts.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
return ret;
}
+#if defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R
static bool
virCgroupValidateMachineGroup(virCgroupPtr group,
const char *name,
VIR_FREE(partname);
return valid;
}
-
+#else
+static bool
+virCgroupValidateMachineGroup(virCgroupPtr group ATTRIBUTE_UNUSED,
+ const char *name ATTRIBUTE_UNUSED,
+ const char *drivername ATTRIBUTE_UNUSED,
+ bool stripEmulatorSuffix ATTRIBUTE_UNUSED)
+{
+ return true;
+}
+#endif
/**
* virCgroupFree: