]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: vircgroup: include unistd.h rather than virutil.h
authorJán Tomko <jtomko@redhat.com>
Sun, 16 Feb 2020 22:03:51 +0000 (23:03 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 24 Feb 2020 22:15:49 +0000 (23:15 +0100)
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@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/util/vircgroup.h
src/util/vircgroupv1.c
src/util/vircgroupv2.c

index a5bd35586dd94ab6f51acbc18e8cdec61161dd4a..1dcd0688f1287bbcdc0d8e588800e99e26369474 100644 (file)
@@ -21,7 +21,6 @@
 
 #pragma once
 
-#include "virutil.h"
 #include "virbitmap.h"
 #include "virenum.h"
 
index d2ec7106db4fc836f0dd95c4e98f9258e55929c9..5504441fa64731c72f2e329373da19c4cae39d15 100644 (file)
@@ -20,6 +20,7 @@
  */
 #include <config.h>
 
+#include <unistd.h>
 #ifdef __linux__
 # include <mntent.h>
 # include <sys/stat.h>
index 1d8c599f6af8e4106d64feffe4e8635440bffa33..80f596542cdc74b7d41b94f5bb4033c0834d2456 100644 (file)
@@ -19,6 +19,7 @@
  */
 #include <config.h>
 
+#include <unistd.h>
 #ifdef __linux__
 # include <mntent.h>
 # include <sys/mount.h>