You need to sign in or sign up before continuing.
提交 03c532cf 编写于 作者: D Daniel P. Berrangé

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: NPavel Hrdina <phrdina@redhat.com>
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 f691ec63
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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>
......
......@@ -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>
......
......@@ -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
......
......@@ -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
......
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册