提交 abd68b2b 编写于 作者: J Ján Tomko

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: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
上级 ec056fba
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
/* includes */ /* includes */
#include <config.h> #include <config.h>
#include <unistd.h>
#include "lxc_conf.h" #include "lxc_conf.h"
#include "lxc_domain.h" #include "lxc_domain.h"
#include "virerror.h" #include "virerror.h"
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <mntent.h> #include <mntent.h>
#include <unistd.h>
#include "lxc_fuse.h" #include "lxc_fuse.h"
#include "lxc_cgroup.h" #include "lxc_cgroup.h"
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
*/ */
#include <config.h> #include <config.h>
#include <unistd.h>
#ifndef WIN32 #ifndef WIN32
# include <sys/ioctl.h> # include <sys/ioctl.h>
#endif #endif
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
*/ */
#include <config.h> #include <config.h>
#include <unistd.h>
#include "virpolkit.h" #include "virpolkit.h"
#include "virerror.h" #include "virerror.h"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h>
#define LIBVIRT_VIRRESCTRLPRIV_H_ALLOW #define LIBVIRT_VIRRESCTRLPRIV_H_ALLOW
#include "virresctrlpriv.h" #include "virresctrlpriv.h"
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#include <config.h> #include <config.h>
#include <unistd.h>
#include "testutils.h" #include "testutils.h"
#include "virerror.h" #include "virerror.h"
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
# include <fcntl.h> # include <fcntl.h>
# include <sys/stat.h> # include <sys/stat.h>
# include <unistd.h>
# include "virstring.h" # include "virstring.h"
# include "virerror.h" # include "virerror.h"
# include "virlog.h" # include "virlog.h"
......
#include <config.h> #include <config.h>
#include <unistd.h>
#include "testutils.h" #include "testutils.h"
#ifdef WITH_VBOX #ifdef WITH_VBOX
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <config.h> #include <config.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h>
#include "testutils.h" #include "testutils.h"
#include "virfile.h" #include "virfile.h"
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <config.h> #include <config.h>
#include <unistd.h>
#include "virscsi.h" #include "virscsi.h"
#include "testutils.h" #include "testutils.h"
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <config.h> #include <config.h>
#include <unistd.h>
#include "testutils.h" #include "testutils.h"
#include "vircommand.h" #include "vircommand.h"
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
# include <dbus/dbus.h> # include <dbus/dbus.h>
# include <fcntl.h> # include <fcntl.h>
# include <unistd.h>
# define LIBVIRT_VIRSYSTEMDPRIV_H_ALLOW # define LIBVIRT_VIRSYSTEMDPRIV_H_ALLOW
# include "virsystemdpriv.h" # include "virsystemdpriv.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册