Include sys/sysmacros.h if present.

Needed for major/minor definitions.

Thanks Mike Frysinger for pointing this out.
This commit is contained in:
Milan Broz
2016-04-19 10:57:45 +02:00
parent 3c3756fbd7
commit e969eba2bb
4 changed files with 10 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ PKG_PROG_PKG_CONFIG
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h malloc.h inttypes.h sys/ioctl.h sys/mman.h \
ctype.h unistd.h locale.h byteswap.h endian.h)
sys/sysmacros.h ctype.h unistd.h locale.h byteswap.h endian.h)
AC_CHECK_HEADERS(uuid/uuid.h,,[AC_MSG_ERROR([You need the uuid library.])])
AC_CHECK_HEADER(libdevmapper.h,,[AC_MSG_ERROR([You need the device-mapper library.])])