c480ed
From 86426efffd910c22c9cfadc50516883b606c6946 Mon Sep 17 00:00:00 2001
c480ed
Message-Id: <86426efffd910c22c9cfadc50516883b606c6946@dist-git>
c480ed
From: Pavel Hrdina <phrdina@redhat.com>
c480ed
Date: Mon, 1 Jul 2019 17:06:03 +0200
c480ed
Subject: [PATCH] vircgroup: fix MinGW build
c480ed
MIME-Version: 1.0
c480ed
Content-Type: text/plain; charset=UTF-8
c480ed
Content-Transfer-Encoding: 8bit
c480ed
c480ed
Broken by commit <901d2b9c87>.
c480ed
c480ed
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c480ed
(cherry picked from commit baebd9f3d84b5cb86c7c6f35eb41cf9fb7e9b624)
c480ed
c480ed
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
c480ed
c480ed
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c480ed
Message-Id: <bb4185916d7e3937b58f9019feb5abf3ba6e4823.1561993099.git.phrdina@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
---
c480ed
 src/util/vircgroup.c | 15 +++++++++++++++
c480ed
 1 file changed, 15 insertions(+)
c480ed
c480ed
diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
c480ed
index 0ed83932ac..df38bb77e0 100644
c480ed
--- a/src/util/vircgroup.c
c480ed
+++ b/src/util/vircgroup.c
c480ed
@@ -4335,6 +4335,21 @@ virCgroupSetMemory(virCgroupPtr group ATTRIBUTE_UNUSED,
c480ed
 }
c480ed
 
c480ed
 
c480ed
+int
c480ed
+virCgroupGetMemoryStat(virCgroupPtr group ATTRIBUTE_UNUSED,
c480ed
+                       unsigned long long *cache ATTRIBUTE_UNUSED,
c480ed
+                       unsigned long long *activeAnon ATTRIBUTE_UNUSED,
c480ed
+                       unsigned long long *inactiveAnon ATTRIBUTE_UNUSED,
c480ed
+                       unsigned long long *activeFile ATTRIBUTE_UNUSED,
c480ed
+                       unsigned long long *inactiveFile ATTRIBUTE_UNUSED,
c480ed
+                       unsigned long long *unevictable ATTRIBUTE_UNUSED)
c480ed
+{
c480ed
+    virReportSystemError(ENOSYS, "%s",
c480ed
+                         _("Control groups not supported on this platform"));
c480ed
+    return -1;
c480ed
+}
c480ed
+
c480ed
+
c480ed
 int
c480ed
 virCgroupGetMemoryUsage(virCgroupPtr group ATTRIBUTE_UNUSED,
c480ed
                         unsigned long *kb ATTRIBUTE_UNUSED)
c480ed
-- 
c480ed
2.22.0
c480ed