]> xenbits.xensource.com Git - libvirt.git/commitdiff
Include unistd.h where used
authorJán Tomko <jtomko@redhat.com>
Sun, 16 Feb 2020 21:59:28 +0000 (22:59 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 24 Feb 2020 22:15:50 +0000 (23:15 +0100)
Include unistd.h in all files that use it, instead
of relying on it being pulled in via virutil.h

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
12 files changed:
src/lxc/lxc_conf.c
src/lxc/lxc_fuse.c
src/util/virperf.c
src/util/virpolkit.c
src/util/virresctrl.c
tests/objecteventtest.c
tests/scsihosttest.c
tests/vboxsnapshotxmltest.c
tests/virfiletest.c
tests/virscsitest.c
tests/virstoragetest.c
tests/virsystemdtest.c

index 43022a3441f31fd211076f32766d45fa4e41deee..8469f30b9e4ac5edb4b8220ac01f9e7f952510b4 100644 (file)
@@ -23,6 +23,8 @@
 /* includes */
 #include <config.h>
 
+#include <unistd.h>
+
 #include "lxc_conf.h"
 #include "lxc_domain.h"
 #include "virerror.h"
index 44f240a0b5d8afbeae42f4fcb2c5cd75922b4691..164b284bb895d50d7098282058fc7a0ddeb84ca7 100644 (file)
@@ -23,6 +23,7 @@
 #include <fcntl.h>
 #include <sys/mount.h>
 #include <mntent.h>
+#include <unistd.h>
 
 #include "lxc_fuse.h"
 #include "lxc_cgroup.h"
index 04d27309e1ec9624bcf88bc4476072b58085c74f..90d60c04fb2a96cd66c4070b2732000c6d44f86e 100644 (file)
@@ -17,6 +17,7 @@
  */
 #include <config.h>
 
+#include <unistd.h>
 #ifndef WIN32
 # include <sys/ioctl.h>
 #endif
index 5c2d0d4bd4dfceda46730ca7830f250af0065518..5a9fa0cfed21bbf1430ef2b09e07465cc18af378 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include <config.h>
+#include <unistd.h>
 
 #include "virpolkit.h"
 #include "virerror.h"
index 569a9ee7703323572e40276dc2e2e0d630617c4f..c537d606cc372d65bd0a564ec7e384f49322c0bf 100644 (file)
@@ -22,6 +22,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 #define LIBVIRT_VIRRESCTRLPRIV_H_ALLOW
 #include "virresctrlpriv.h"
index 80889339bdc351b57ad18095fc180820a5eff1e0..1e84d4be111302dba1f2cd83cf9098ff47ec3dd7 100644 (file)
@@ -19,6 +19,8 @@
 
 #include <config.h>
 
+#include <unistd.h>
+
 #include "testutils.h"
 
 #include "virerror.h"
index e8193836ff32d0864ad6862688189a615a33faab..b58318d2956379d321fe4aca62f55dc3b807a576 100644 (file)
@@ -25,6 +25,7 @@
 
 # include <fcntl.h>
 # include <sys/stat.h>
+# include <unistd.h>
 # include "virstring.h"
 # include "virerror.h"
 # include "virlog.h"
index dbeebec1964367b187bc5e8520f40df4e94d0d58..2ea460d8bd856c50a76c39cbc124906ec3f2ab08 100644 (file)
@@ -1,5 +1,7 @@
 #include <config.h>
 
+#include <unistd.h>
+
 #include "testutils.h"
 
 #ifdef WITH_VBOX
index a412fdad23ab97eae145aaf2fbefc8bcd7077173..d410bb68e453a585f1248e61c4e5ba9b433b90bc 100644 (file)
@@ -19,6 +19,7 @@
 #include <config.h>
 
 #include <fcntl.h>
+#include <unistd.h>
 
 #include "testutils.h"
 #include "virfile.h"
index d5a0da475380a7ac68e4b9dd4cdaa7504a422743..47035e927e465379c755ba2e1dddb5e4db5f80c6 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <config.h>
 
+#include <unistd.h>
 
 #include "virscsi.h"
 #include "testutils.h"
index e7794d6168fa069ca5e777ffc0149339fba8bb9d..97c22d42af5cc64790d5b82edd51c181b6623a22 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <config.h>
 
+#include <unistd.h>
 
 #include "testutils.h"
 #include "vircommand.h"
index a9b02af7dbdfd7976fb0539f6f1744d91d357f4d..b7dfd64d06151a414dd0f6ef4433c1427f4fc6c1 100644 (file)
@@ -24,6 +24,7 @@
 
 # include <dbus/dbus.h>
 # include <fcntl.h>
+# include <unistd.h>
 
 # define LIBVIRT_VIRSYSTEMDPRIV_H_ALLOW
 # include "virsystemdpriv.h"