From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- configure.ac | 1 + disk-utils/fsck.cramfs.c | 2 ++ disk-utils/raw.c | 2 ++ login-utils/login.c | 2 ++ 4 files changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 17917af..969c2cc 100644 --- a/configure.ac +++ b/configure.ac @@ -238,6 +238,7 @@ AC_CHECK_HEADERS([ \ sys/socket.h \ sys/sockio.h \ sys/stat.h \ + sys/sysmacros.h \ sys/swap.h \ sys/syscall.h \ sys/time.h \ diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c index 6ca6094..7df5390 100644 --- a/disk-utils/fsck.cramfs.c +++ b/disk-utils/fsck.cramfs.c @@ -53,7 +53,9 @@ #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> +#ifdef HAVE_SYS_SYSMACROS_H #include <sys/sysmacros.h> /* for major, minor */ +#endif #include "cramfs.h" #include "nls.h" diff --git a/disk-utils/raw.c b/disk-utils/raw.c index d29ff1b..6c4b6de 100644 --- a/disk-utils/raw.c +++ b/disk-utils/raw.c @@ -20,7 +20,9 @@ #include <string.h> #include <sys/ioctl.h> #include <sys/stat.h> +#ifdef HAVE_SYS_SYSMACROS_H #include <sys/sysmacros.h> +#endif #include <unistd.h> #include "c.h" diff --git a/login-utils/login.c b/login-utils/login.c index 6f51039..e1f11eb 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -48,7 +48,9 @@ #include <utmp.h> #include <stdlib.h> #include <sys/syslog.h> +#ifdef HAVE_SYS_SYSMACROS_H #include <sys/sysmacros.h> +#endif #ifdef HAVE_LINUX_MAJOR_H # include <linux/major.h> #endif -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html