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>
#include <sys/stat.h>
-#ifdef MAJOR_IN_MKDEV
-# include <sys/mkdev.h>
-#elif MAJOR_IN_SYSMACROS
+#ifdef __linux__
# include <sys/sysmacros.h>
#endif
#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
#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
#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>
# 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>
#include <config.h>
-#ifdef MAJOR_IN_MKDEV
-# include <sys/mkdev.h>
-#elif MAJOR_IN_SYSMACROS
+#ifdef __linux__
# include <sys/sysmacros.h>
#endif
# include <conio.h>
#endif /* WIN32 */
-#ifdef MAJOR_IN_MKDEV
-# include <sys/mkdev.h>
-#elif MAJOR_IN_SYSMACROS
+#ifdef __linux__
# include <sys/sysmacros.h>
#endif
# 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"