Revert "Include unistd.h directly by files using it"

This reverts commit a5e1602090.

Getting rid of unistd.h from our headers will require more work than
just fixing the broken mingw build. Revert it until I have a more
complete proposal.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Peter Krempa 2019-04-10 12:26:21 +02:00
parent a5e1602090
commit f785318187
39 changed files with 1 additions and 48 deletions

View File

@ -20,8 +20,6 @@
#include <config.h>
#include <unistd.h>
#include "viralloc.h"
#include "virerror.h"
#include "virstring.h"

View File

@ -21,7 +21,6 @@
#include <config.h>
#include <fcntl.h>
#include <unistd.h>
#include "libxl_domain.h"
#include "libxl_capabilities.h"

View File

@ -21,8 +21,6 @@
#include <config.h>
#include <unistd.h>
#include "lock_daemon_config.h"
#include "virconf.h"
#include "viralloc.h"

View File

@ -21,8 +21,6 @@
#include <config.h>
#include <unistd.h>
#include "lock_driver.h"
#include "virconf.h"
#include "viralloc.h"

View File

@ -21,8 +21,6 @@
#include <config.h>
#include <unistd.h>
#include "log_daemon_config.h"
#include "virconf.h"
#include "viralloc.h"

View File

@ -23,8 +23,6 @@
/* includes */
#include <config.h>
#include "unistd.h"
#include "lxc_conf.h"
#include "lxc_domain.h"
#include "virerror.h"

View File

@ -23,7 +23,6 @@
#include <fcntl.h>
#include <sys/mount.h>
#include <mntent.h>
#include <unistd.h>
#include "lxc_fuse.h"
#include "lxc_cgroup.h"

View File

@ -23,7 +23,6 @@
#include <config.h>
#include <unistd.h>
#include "virthread.h"
#include "virfile.h"

View File

@ -25,7 +25,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/utsname.h>
#include <unistd.h>
#include "internal.h"

View File

@ -64,7 +64,6 @@
#endif
#include <sys/time.h>
#include <fcntl.h>
#include <unistd.h>
#if defined(HAVE_SYS_MOUNT_H)
# include <sys/mount.h>
#endif

View File

@ -21,8 +21,6 @@
#include <config.h>
#include <unistd.h>
#include "remote_daemon_config.h"
#include "virconf.h"
#include "viralloc.h"

View File

@ -22,7 +22,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#ifdef __FreeBSD__
# include <sys/sysctl.h>

View File

@ -22,7 +22,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "security_driver.h"
#include "security_stack.h"

View File

@ -23,7 +23,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "virerror.h"
#include "storage_file_fs.h"

View File

@ -21,7 +21,6 @@
#include <config.h>
#ifdef __linux__
# include <unistd.h>
# include <mntent.h>
# include <sys/stat.h>
# include <sys/mount.h>

View File

@ -20,7 +20,6 @@
#include <config.h>
#ifdef __linux__
# include <unistd.h>
# include <mntent.h>
# include <sys/mount.h>
#endif /* __linux__ */

View File

@ -35,7 +35,6 @@
#include <sys/ioctl.h>
#include <net/if.h>
#include <fcntl.h>
#include <unistd.h>
#ifdef __linux__
# include <linux/sockios.h>

View File

@ -36,7 +36,6 @@
#include <sys/ioctl.h>
#include <net/if.h>
#include <fcntl.h>
#include <unistd.h>
#ifdef __linux__
# include <linux/sockios.h>

View File

@ -24,8 +24,6 @@
#include <config.h>
#include <unistd.h>
#include "virnetdevmacvlan.h"
#include "virmacaddr.h"
#include "virerror.h"

View File

@ -18,8 +18,6 @@
#include <config.h>
#include <unistd.h>
#include "virnetdevvportprofile.h"
#include "virerror.h"
#include "viralloc.h"

View File

@ -17,7 +17,6 @@
*/
#include <config.h>
#include <unistd.h>
#include <sys/ioctl.h>
#if defined HAVE_SYS_SYSCALL_H
# include <sys/syscall.h>

View File

@ -26,7 +26,6 @@
#include <fcntl.h>
#include <signal.h>
#include <sys/stat.h>
#include <unistd.h>
#include "virpidfile.h"
#include "virfile.h"

View File

@ -21,7 +21,6 @@
#include <config.h>
#include <poll.h>
#include <unistd.h>
#include "virpolkit.h"
#include "virerror.h"

View File

@ -22,7 +22,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#define LIBVIRT_VIRRESCTRLPRIV_H_ALLOW
#include "virresctrlpriv.h"

View File

@ -24,6 +24,7 @@
# define LIBVIRT_VIRUTIL_H
# include "internal.h"
# include <unistd.h>
# include <sys/types.h>
# ifndef MIN

View File

@ -22,7 +22,6 @@
#include <signal.h>
#include <time.h>
#include <unistd.h>
#if HAVE_MACH_CLOCK_ROUTINES
# include <mach/clock.h>

View File

@ -19,8 +19,6 @@
#include <config.h>
#include <unistd.h>
#include "testutils.h"
#include "virerror.h"

View File

@ -25,7 +25,6 @@
# include <fcntl.h>
# include <sys/stat.h>
# include <unistd.h>
# include "virstring.h"
# include "virerror.h"
# include "virlog.h"

View File

@ -5,7 +5,6 @@
#ifdef WITH_VBOX
# include <regex.h>
# include <unistd.h>
# include "vbox/vbox_snapshot_conf.h"
# define VIR_FROM_THIS VIR_FROM_NONE

View File

@ -19,7 +19,6 @@
#include <config.h>
#include <fcntl.h>
#include <unistd.h>
#include "testutils.h"
#include "virfile.h"

View File

@ -21,7 +21,6 @@
#ifndef WIN32
# include <fcntl.h>
# include <unistd.h>
# include "viralloc.h"
# include "virfile.h"

View File

@ -20,7 +20,6 @@
#include <signal.h>
#include <sys/stat.h>
#include <unistd.h>
#include "testutils.h"
#include "virutil.h"

View File

@ -18,8 +18,6 @@
#include <config.h>
#include <unistd.h>
#include "testutils.h"
#include "virerror.h"
#include "rpc/virnetdaemon.h"

View File

@ -23,7 +23,6 @@
# include <ifaddrs.h>
#endif
#include <netdb.h>
#include <unistd.h>
#include "testutils.h"
#include "virutil.h"

View File

@ -20,7 +20,6 @@
#include <fcntl.h>
#include <sys/socket.h>
#include <unistd.h>
#include "testutils.h"
#include "virnettlshelpers.h"

View File

@ -20,7 +20,6 @@
#include <fcntl.h>
#include <sys/socket.h>
#include <unistd.h>
#include "virnettlshelpers.h"
#include "viralloc.h"

View File

@ -20,7 +20,6 @@
#include <fcntl.h>
#include <sys/socket.h>
#include <unistd.h>
#include "testutils.h"
#include "virnettlshelpers.h"

View File

@ -19,7 +19,6 @@
#include <config.h>
#include <unistd.h>
#include "virscsi.h"
#include "testutils.h"

View File

@ -18,7 +18,6 @@
#include <config.h>
#include <unistd.h>
#include "testutils.h"
#include "vircommand.h"