[libvirt] [PATCH] vircgroup: fix MinGW build

Pavel Hrdina posted 1 patch 5 years, 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/baebd9f3d84b5cb86c7c6f35eb41cf9fb7e9b624.1534170306.git.phrdina@redhat.com
Test syntax-check passed
src/util/vircgroup.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
[libvirt] [PATCH] vircgroup: fix MinGW build
Posted by Pavel Hrdina 5 years, 8 months ago
Broken by commit <901d2b9c87>.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---

Pushed under build-breaker rule.

 src/util/vircgroup.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index 0ed83932ac..df38bb77e0 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -4335,6 +4335,21 @@ virCgroupSetMemory(virCgroupPtr group ATTRIBUTE_UNUSED,
 }
 
 
+int
+virCgroupGetMemoryStat(virCgroupPtr group ATTRIBUTE_UNUSED,
+                       unsigned long long *cache ATTRIBUTE_UNUSED,
+                       unsigned long long *activeAnon ATTRIBUTE_UNUSED,
+                       unsigned long long *inactiveAnon ATTRIBUTE_UNUSED,
+                       unsigned long long *activeFile ATTRIBUTE_UNUSED,
+                       unsigned long long *inactiveFile ATTRIBUTE_UNUSED,
+                       unsigned long long *unevictable ATTRIBUTE_UNUSED)
+{
+    virReportSystemError(ENOSYS, "%s",
+                         _("Control groups not supported on this platform"));
+    return -1;
+}
+
+
 int
 virCgroupGetMemoryUsage(virCgroupPtr group ATTRIBUTE_UNUSED,
                         unsigned long *kb ATTRIBUTE_UNUSED)
-- 
2.17.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list