Skip to content

Commit 14973bf

Browse files
committed
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 <[email protected]>
1 parent 77717b6 commit 14973bf

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

configure.ac

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ dnl ############################################################################
159159
AC_CHECK_HEADERS([string.h memory.h limits.h malloc.h \
160160
utime.h sys/statfs.h sys/vfs.h \
161161
sys/select.h sys/ioctl.h stropts.h arpa/inet.h \
162-
sys/socket.h sys/sysmacros.h sys/mkdev.h])
162+
sys/socket.h])
163+
AC_HEADER_MAJOR
163164
AC_HEADER_ASSERT
164165

165166

lib/unixcompat.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
#define MC_UNIXCOMPAT_H
1313

1414
#include <sys/types.h> /* BSD */
15-
#ifdef HAVE_SYS_MKDEV_H
16-
#include <sys/mkdev.h> /* Solaris 9 */
17-
#endif
18-
#if defined(_AIX) && defined(HAVE_SYS_SYSMACROS_H)
19-
#include <sys/sysmacros.h> /* AIX */
15+
16+
#if MAJOR_IN_MKDEV
17+
#include <sys/mkdev.h>
18+
#elif MAJOR_IN_SYSMACROS
19+
#include <sys/sysmacros.h>
2020
#endif
2121

2222
#if defined(_AIX)

0 commit comments

Comments
 (0)