mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
eec91958b4
commit
f55d1316ad
|
@ -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>
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#ifndef __QEMUD_CONF_H
|
||||
# define __QEMUD_CONF_H
|
||||
|
||||
# include <unistd.h>
|
||||
|
||||
# include "virebtables.h"
|
||||
# include "internal.h"
|
||||
# include "capabilities.h"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "internal.h"
|
||||
#include "virerror.h"
|
||||
|
|
Loading…
Reference in New Issue