Include unistd.h where used

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>
This commit is contained in:
Ján Tomko committed 2020-02-24 23:15:50 +01:00
1 parent ec056fba8e
commit abd68b2bdb
12 files changed
+15

No files matched your search

+2
View File
@@ -23,6 +23,8 @@
/* includes */
#include <config.h>
#include <unistd.h>
#include "lxc_conf.h"
#include "lxc_domain.h"
#include "virerror.h"
+1
View 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"
+1
View File
@@ -17,6 +17,7 @@
*/
#include <config.h>
#include <unistd.h>
#ifndef WIN32
# include <sys/ioctl.h>
#endif
+1
View File
@@ -20,6 +20,7 @@
*/
#include <config.h>
#include <unistd.h>
#include "virpolkit.h"
#include "virerror.h"
+1
View 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"
+2
View File
@@ -19,6 +19,8 @@
#include <config.h>
#include <unistd.h>
#include "testutils.h"
#include "virerror.h"
+1
View File
@@ -25,6 +25,7 @@
# include <fcntl.h>
# include <sys/stat.h>
# include <unistd.h>
# include "virstring.h"
# include "virerror.h"
# include "virlog.h"
+2
View File
@@ -1,5 +1,7 @@
#include <config.h>
#include <unistd.h>
#include "testutils.h"
#ifdef WITH_VBOX
+1
View File
@@ -19,6 +19,7 @@
#include <config.h>
#include <fcntl.h>
#include <unistd.h>
#include "testutils.h"
#include "virfile.h"
+1
View File
@@ -19,6 +19,7 @@
#include <config.h>
#include <unistd.h>
#include "virscsi.h"
#include "testutils.h"
+1
View File
@@ -18,6 +18,7 @@
#include <config.h>
#include <unistd.h>
#include "testutils.h"
#include "vircommand.h"
+1
View File
@@ -24,6 +24,7 @@
# include <dbus/dbus.h>
# include <fcntl.h>
# include <unistd.h>
# define LIBVIRT_VIRSYSTEMDPRIV_H_ALLOW
# include "virsystemdpriv.h"