Use AC_HEADER_MAJOR.

Instead of checking for sys/mkdev.h headerfile, there is the
AC_HEADER_MAJOR helper for how to get major(), minor(), makedev().

Sinc with GLib efb1701bf3baf6f5b05fd1a7a5a4ff990a7dc460.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2013-11-24 09:39:16 +04:00
parent 77717b67bb
commit 14973bfe79
2 changed files with 7 additions and 6 deletions

View File

@ -159,7 +159,8 @@ dnl ############################################################################
AC_CHECK_HEADERS([string.h memory.h limits.h malloc.h \ AC_CHECK_HEADERS([string.h memory.h limits.h malloc.h \
utime.h sys/statfs.h sys/vfs.h \ utime.h sys/statfs.h sys/vfs.h \
sys/select.h sys/ioctl.h stropts.h arpa/inet.h \ sys/select.h sys/ioctl.h stropts.h arpa/inet.h \
sys/socket.h sys/sysmacros.h sys/mkdev.h]) sys/socket.h])
AC_HEADER_MAJOR
AC_HEADER_ASSERT AC_HEADER_ASSERT

View File

@ -12,11 +12,11 @@
#define MC_UNIXCOMPAT_H #define MC_UNIXCOMPAT_H
#include <sys/types.h> /* BSD */ #include <sys/types.h> /* BSD */
#ifdef HAVE_SYS_MKDEV_H
#include <sys/mkdev.h> /* Solaris 9 */ #if MAJOR_IN_MKDEV
#endif #include <sys/mkdev.h>
#if defined(_AIX) && defined(HAVE_SYS_SYSMACROS_H) #elif MAJOR_IN_SYSMACROS
#include <sys/sysmacros.h> /* AIX */ #include <sys/sysmacros.h>
#endif #endif
#if defined(_AIX) #if defined(_AIX)