From f1e48297cf156600b5a7c69d80c69c546be2bdf7 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 9 Jan 2017 14:27:34 +0000 Subject: [PATCH] cgroup: add virCgroupAddMachineTask stub for win32 Signed-off-by: Daniel P. Berrange --- src/util/vircgroup.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index ddf19e9023..5aa1db5b14 100644 --- a/src/util/vircgroup.c +++ b/src/util/vircgroup.c @@ -4288,6 +4288,16 @@ virCgroupAddTask(virCgroupPtr group ATTRIBUTE_UNUSED, } +int +virCgroupAddMachineTask(virCgroupPtr group ATTRIBUTE_UNUSED, + pid_t pid ATTRIBUTE_UNUSED) +{ + virReportSystemError(ENXIO, "%s", + _("Control groups not supported on this platform")); + return -1; +} + + int virCgroupAddTaskController(virCgroupPtr group ATTRIBUTE_UNUSED, pid_t pid ATTRIBUTE_UNUSED, -- GitLab