]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
vircgroup: Fix broken builds without cgroups
authorJohn Ferlan <jferlan@redhat.com>
Mon, 15 Sep 2014 18:45:23 +0000 (14:45 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 15 Sep 2014 18:48:52 +0000 (14:48 -0400)
I missed adding virCgroupNewIOThread to the !VIR_CGROUP_SUPPORTED

Pushing as build breaker

src/util/vircgroup.c

index 13c7b7da192383fb2550013fa359c836b7594a80..1dbe6f99e803fe17a0d9b6ec9fac89aee77404be 100644 (file)
@@ -3982,6 +3982,18 @@ virCgroupNewEmulator(virCgroupPtr domain ATTRIBUTE_UNUSED,
 }
 
 
+int
+virCgroupNewIOThread(virCgroupPtr domain ATTRIBUTE_UNUSED,
+                     int iothreadid ATTRIBUTE_UNUSED,
+                     bool create ATTRIBUTE_UNUSED,
+                     virCgroupPtr *group ATTRIBUTE_UNUSED)
+{
+    virReportSystemError(ENXIO, "%s",
+                         _("Control groups not supported on this platform"));
+    return -1;
+}
+
+
 int
 virCgroupNewDetect(pid_t pid ATTRIBUTE_UNUSED,
                    int controllers ATTRIBUTE_UNUSED,