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 2020-02-16 22:59:28 +01:00
parent ec056fba8e
commit abd68b2bdb
12 changed files with 15 additions and 0 deletions

View File

@ -23,6 +23,8 @@
/* includes */
#include <config.h>
#include <unistd.h>
#include "lxc_conf.h"
#include "lxc_domain.h"
#include "virerror.h"

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"

View File

@ -17,6 +17,7 @@
*/
#include <config.h>
#include <unistd.h>
#ifndef WIN32
# include <sys/ioctl.h>
#endif

View File

@ -20,6 +20,7 @@
*/
#include <config.h>
#include <unistd.h>
#include "virpolkit.h"
#include "virerror.h"

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"

View File

@ -19,6 +19,8 @@
#include <config.h>
#include <unistd.h>
#include "testutils.h"
#include "virerror.h"

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"

View File

@ -1,5 +1,7 @@
#include <config.h>
#include <unistd.h>
#include "testutils.h"
#ifdef WITH_VBOX

View File

@ -19,6 +19,7 @@
#include <config.h>
#include <fcntl.h>
#include <unistd.h>
#include "testutils.h"
#include "virfile.h"

View File

@ -19,6 +19,7 @@
#include <config.h>
#include <unistd.h>
#include "virscsi.h"
#include "testutils.h"

View File

@ -18,6 +18,7 @@
#include <config.h>
#include <unistd.h>
#include "testutils.h"
#include "vircommand.h"

View File

@ -24,6 +24,7 @@
# include <dbus/dbus.h>
# include <fcntl.h>
# include <unistd.h>
# define LIBVIRT_VIRSYSTEMDPRIV_H_ALLOW
# include "virsystemdpriv.h"