]> xenbits.xensource.com Git - libvirt.git/commitdiff
vircgroup: Fix build issue mingw cross compile
authorJohn Ferlan <jferlan@redhat.com>
Fri, 27 Mar 2015 16:36:04 +0000 (12:36 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 27 Mar 2015 22:09:07 +0000 (18:09 -0400)
Commit id '2dbfa716' exposed virCgroupDetectMountsFromFile, but did not
add the corresponding entry in the "#else /* !VIR_CGROUP_SUPPORTED */"
section of the module.

src/util/vircgroup.c

index 093a146e4598661f70d7f84d631dd9571fdeae16..7c594280e606507ffb8375c1c8f705b33163ae37 100644 (file)
@@ -4020,6 +4020,17 @@ virCgroupAvailable(void)
 }
 
 
+int
+virCgroupDetectMountsFromFile(virCgroupPtr group ATTRIBUTE_UNUSED,
+                              const char *path ATTRIBUTE_UNUSED,
+                              bool checkLinks ATTRIBUTE_UNUSED)
+{
+    virReportSystemError(ENXIO, "%s",
+                         _("Control groups not supported on this platform"));
+    return -1;
+}
+
+
 int
 virCgroupNewPartition(const char *path ATTRIBUTE_UNUSED,
                       bool create ATTRIBUTE_UNUSED,