From: Ján Tomko Date: Thu, 19 Nov 2020 10:16:27 +0000 (+0100) Subject: cgroup: add stub for virCgroupNew X-Git-Tag: v6.10.0-rc1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a8d5614335efa71622c0f5f40dc33c028350966;p=thirdparty%2Flibvirt.git 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 Fixes: 126cb34a206a44f04e364700b46426dff9f387d5 --- diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index e0fe1dbf3e..13df10e507 100644 --- a/src/util/vircgroup.c +++ b/src/util/vircgroup.c @@ -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) {