[PATCH] Add virCgroupTerminateMachine stub

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix the build on FreeBSD, broken by commit 4882618.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
Pushed under the build breaker rule.

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

diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index d69f71b..9bbe694 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -4029,6 +4029,17 @@ virCgroupNewDetectMachine(const char *name ATTRIBUTE_UNUSED,
     return -1;
 }
 
+
+int virCgroupTerminateMachine(const char *name ATTRIBUTE_UNUSED,
+                              const char *drivername ATTRIBUTE_UNUSED,
+                              bool privileged ATTRIBUTE_UNUSED)
+{
+    virReportSystemError(ENXIO, "%s",
+                         _("Control groups not supported on this platform"));
+    return -1;
+}
+
+
 int
 virCgroupNewMachine(const char *name ATTRIBUTE_UNUSED,
                     const char *drivername ATTRIBUTE_UNUSED,
-- 
2.0.4

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





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]