]> xenbits.xensource.com Git - libvirt.git/commitdiff
sysconf: Include unistd.h
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 20 Dec 2015 07:27:21 +0000 (08:27 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Dec 2015 17:03:50 +0000 (18:03 +0100)
The manpage for sysconf() suggest including unistd.h as the
function is declared there. Even though we are not hitting any
compile issues currently, let's include the correct header file
instead of relying on some hidden include chain.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/nodeinfo.c
src/qemu/qemu_conf.h
src/util/vircgroup.c
src/util/vircommand.c
tools/virt-login-shell.c

index 6ccada55bfff63a3ecf952ab424e605fec2eb595..77ea15502ad3f66c2285176fc33aa1522e214aa0 100644 (file)
@@ -33,6 +33,7 @@
 #include "conf/domain_conf.h"
 #include <fcntl.h>
 #include <sys/ioctl.h>
+#include <unistd.h>
 
 #if HAVE_LINUX_KVM_H
 # include <linux/kvm.h>
index 4b33770bde75eca8d67b41db62d45ca0cb122fbb..a714b84c9707615c7a2b87db9ff85eaf45ad3e0f 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef __QEMUD_CONF_H
 # define __QEMUD_CONF_H
 
+# include <unistd.h>
+
 # include "virebtables.h"
 # include "internal.h"
 # include "capabilities.h"
index a07f3c255be4f451061f1f2e673367a4852fc270..e39c4d1ab3819f862da58ab0c095e838a6514b4d 100644 (file)
@@ -38,6 +38,7 @@
 #include <sys/types.h>
 #include <signal.h>
 #include <dirent.h>
+#include <unistd.h>
 
 #define __VIR_CGROUP_ALLOW_INCLUDE_PRIV_H__
 #include "vircgrouppriv.h"
index 1993bc658d60cfcc7c167f2226ec57a767cb1591..fe7bf34cb834b08881296ff88fd81e87aa70017f 100644 (file)
@@ -29,6 +29,7 @@
 #include <sys/stat.h>
 #include <sys/wait.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 #if WITH_CAPNG
 # include <cap-ng.h>
index ceb271d070f9affdc7175b738ab77d09390773ca..ec759dcb0d901565f2af8f8e8b3b9e1fd6492862 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 #include "internal.h"
 #include "virerror.h"