From: Ján Tomko Date: Sun, 16 Feb 2020 21:59:28 +0000 (+0100) Subject: Include unistd.h where used X-Git-Tag: v6.1.0-rc1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abd68b2bdb110991a858139a7f273027ccd86615;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Daniel Henrique Barboza --- diff --git a/src/lxc/lxc_conf.c b/src/lxc/lxc_conf.c index 43022a3441..8469f30b9e 100644 --- a/src/lxc/lxc_conf.c +++ b/src/lxc/lxc_conf.c @@ -23,6 +23,8 @@ /* includes */ #include +#include + #include "lxc_conf.h" #include "lxc_domain.h" #include "virerror.h" diff --git a/src/lxc/lxc_fuse.c b/src/lxc/lxc_fuse.c index 44f240a0b5..164b284bb8 100644 --- a/src/lxc/lxc_fuse.c +++ b/src/lxc/lxc_fuse.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "lxc_fuse.h" #include "lxc_cgroup.h" diff --git a/src/util/virperf.c b/src/util/virperf.c index 04d27309e1..90d60c04fb 100644 --- a/src/util/virperf.c +++ b/src/util/virperf.c @@ -17,6 +17,7 @@ */ #include +#include #ifndef WIN32 # include #endif diff --git a/src/util/virpolkit.c b/src/util/virpolkit.c index 5c2d0d4bd4..5a9fa0cfed 100644 --- a/src/util/virpolkit.c +++ b/src/util/virpolkit.c @@ -20,6 +20,7 @@ */ #include +#include #include "virpolkit.h" #include "virerror.h" diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index 569a9ee770..c537d606cc 100644 --- a/src/util/virresctrl.c +++ b/src/util/virresctrl.c @@ -22,6 +22,7 @@ #include #include #include +#include #define LIBVIRT_VIRRESCTRLPRIV_H_ALLOW #include "virresctrlpriv.h" diff --git a/tests/objecteventtest.c b/tests/objecteventtest.c index 80889339bd..1e84d4be11 100644 --- a/tests/objecteventtest.c +++ b/tests/objecteventtest.c @@ -19,6 +19,8 @@ #include +#include + #include "testutils.h" #include "virerror.h" diff --git a/tests/scsihosttest.c b/tests/scsihosttest.c index e8193836ff..b58318d295 100644 --- a/tests/scsihosttest.c +++ b/tests/scsihosttest.c @@ -25,6 +25,7 @@ # include # include +# include # include "virstring.h" # include "virerror.h" # include "virlog.h" diff --git a/tests/vboxsnapshotxmltest.c b/tests/vboxsnapshotxmltest.c index dbeebec196..2ea460d8bd 100644 --- a/tests/vboxsnapshotxmltest.c +++ b/tests/vboxsnapshotxmltest.c @@ -1,5 +1,7 @@ #include +#include + #include "testutils.h" #ifdef WITH_VBOX diff --git a/tests/virfiletest.c b/tests/virfiletest.c index a412fdad23..d410bb68e4 100644 --- a/tests/virfiletest.c +++ b/tests/virfiletest.c @@ -19,6 +19,7 @@ #include #include +#include #include "testutils.h" #include "virfile.h" diff --git a/tests/virscsitest.c b/tests/virscsitest.c index d5a0da4753..47035e927e 100644 --- a/tests/virscsitest.c +++ b/tests/virscsitest.c @@ -19,6 +19,7 @@ #include +#include #include "virscsi.h" #include "testutils.h" diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c index e7794d6168..97c22d42af 100644 --- a/tests/virstoragetest.c +++ b/tests/virstoragetest.c @@ -18,6 +18,7 @@ #include +#include #include "testutils.h" #include "vircommand.h" diff --git a/tests/virsystemdtest.c b/tests/virsystemdtest.c index a9b02af7db..b7dfd64d06 100644 --- a/tests/virsystemdtest.c +++ b/tests/virsystemdtest.c @@ -24,6 +24,7 @@ # include # include +# include # define LIBVIRT_VIRSYSTEMDPRIV_H_ALLOW # include "virsystemdpriv.h"