sysconf: Include unistd.h

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>
This commit is contained in:
Michal Privoznik 2015-12-20 08:27:21 +01:00
parent eec91958b4
commit f55d1316ad
5 changed files with 6 additions and 0 deletions

View 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>

View 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"

View 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"

View 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>

View File

@ -29,6 +29,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "internal.h"
#include "virerror.h"