1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

src: assume sys/sysmacros.h always exists on Linux

All our supported Linux distros now have this header.
It has never existed on FreeBSD / macOS / Mingw.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2020-01-24 17:32:48 +00:00
parent f691ec63b4
commit 03c532cf97
8 changed files with 8 additions and 32 deletions

View File

@ -23,9 +23,7 @@
#include <sys/stat.h>
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#elif MAJOR_IN_SYSMACROS
#ifdef __linux__
# include <sys/sysmacros.h>
#endif

View File

@ -24,9 +24,7 @@
#include <sys/epoll.h>
#include <sys/wait.h>
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#elif MAJOR_IN_SYSMACROS
#ifdef __linux__
# include <sys/sysmacros.h>
#endif

View File

@ -25,9 +25,7 @@
#include <sched.h>
#include <sys/utsname.h>
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#elif MAJOR_IN_SYSMACROS
#ifdef __linux__
# include <sys/sysmacros.h>
#endif

View File

@ -62,9 +62,7 @@
#include "virdomaincheckpointobjlist.h"
#include "backup_conf.h"
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#elif MAJOR_IN_SYSMACROS
#ifdef __linux__
# include <sys/sysmacros.h>
#endif
#include <sys/time.h>

View File

@ -25,13 +25,7 @@
# include <sys/mount.h>
# include <fcntl.h>
# include <sys/stat.h>
# ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
# elif MAJOR_IN_SYSMACROS
# include <sys/sysmacros.h>
# endif
# include <sys/sysmacros.h>
# include <sys/types.h>
# include <signal.h>
# include <dirent.h>

View File

@ -20,9 +20,7 @@
#include <config.h>
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#elif MAJOR_IN_SYSMACROS
#ifdef __linux__
# include <sys/sysmacros.h>
#endif

View File

@ -31,9 +31,7 @@
# include <conio.h>
#endif /* WIN32 */
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#elif MAJOR_IN_SYSMACROS
#ifdef __linux__
# include <sys/sysmacros.h>
#endif

View File

@ -23,13 +23,7 @@
# include <unistd.h>
# include <fcntl.h>
# include <sys/stat.h>
# ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
# elif MAJOR_IN_SYSMACROS
# include <sys/sysmacros.h>
# endif
# include <sys/sysmacros.h>
# include <stdarg.h>
# include "testutilslxc.h"
# include "virstring.h"