cgroup: add stub for virCgroupNew

The previous commit exported the function but forgot to add
a non-Linux stub.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 126cb34a206a44f04e364700b46426dff9f387d5
This commit is contained in:
Ján Tomko 2020-11-19 11:16:27 +01:00
parent 126cb34a20
commit 0a8d561433

View File

@ -2820,6 +2820,17 @@ virCgroupNewPartition(const char *path G_GNUC_UNUSED,
}
int
virCgroupNew(const char *path G_GNUC_UNUSED,
int controllers G_GNUC_UNUSED,
virCgroupPtr *group G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Control groups not supported on this platform"));
return -1;
}
int
virCgroupNewSelf(virCgroupPtr *group G_GNUC_UNUSED)
{