There is nothing in the vircgroup.h header file
requiring virutil.h.
Remove it and include unistd.h in the C files.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/util/vircgroup.h | 1 -
src/util/vircgroupv1.c | 1 +
src/util/vircgroupv2.c | 1 +
3 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/util/vircgroup.h b/src/util/vircgroup.h
index a5bd35586d..1dcd0688f1 100644
--- a/src/util/vircgroup.h
+++ b/src/util/vircgroup.h
@@ -21,7 +21,6 @@
#pragma once
-#include "virutil.h"
#include "virbitmap.h"
#include "virenum.h"
diff --git a/src/util/vircgroupv1.c b/src/util/vircgroupv1.c
index d2ec7106db..5504441fa6 100644
--- a/src/util/vircgroupv1.c
+++ b/src/util/vircgroupv1.c
@@ -20,6 +20,7 @@
*/
#include <config.h>
+#include <unistd.h>
#ifdef __linux__
# include <mntent.h>
# include <sys/stat.h>
diff --git a/src/util/vircgroupv2.c b/src/util/vircgroupv2.c
index 1d8c599f6a..80f596542c 100644
--- a/src/util/vircgroupv2.c
+++ b/src/util/vircgroupv2.c
@@ -19,6 +19,7 @@
*/
#include <config.h>
+#include <unistd.h>
#ifdef __linux__
# include <mntent.h>
# include <sys/mount.h>
--
2.24.1