mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
ec056fba8e
commit
abd68b2bdb
@ -23,6 +23,8 @@
|
||||
/* includes */
|
||||
#include <config.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "lxc_conf.h"
|
||||
#include "lxc_domain.h"
|
||||
#include "virerror.h"
|
||||
|
@ -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"
|
||||
|
@ -17,6 +17,7 @@
|
||||
*/
|
||||
#include <config.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#ifndef WIN32
|
||||
# include <sys/ioctl.h>
|
||||
#endif
|
||||
|
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "virpolkit.h"
|
||||
#include "virerror.h"
|
||||
|
@ -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"
|
||||
|
@ -19,6 +19,8 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "testutils.h"
|
||||
|
||||
#include "virerror.h"
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
# include <fcntl.h>
|
||||
# include <sys/stat.h>
|
||||
# include <unistd.h>
|
||||
# include "virstring.h"
|
||||
# include "virerror.h"
|
||||
# include "virlog.h"
|
||||
|
@ -1,5 +1,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "testutils.h"
|
||||
|
||||
#ifdef WITH_VBOX
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "testutils.h"
|
||||
#include "virfile.h"
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "virscsi.h"
|
||||
#include "testutils.h"
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "testutils.h"
|
||||
#include "vircommand.h"
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
# include <dbus/dbus.h>
|
||||
# include <fcntl.h>
|
||||
# include <unistd.h>
|
||||
|
||||
# define LIBVIRT_VIRSYSTEMDPRIV_H_ALLOW
|
||||
# include "virsystemdpriv.h"
|
||||
|
Loading…
Reference in New Issue
Block a user