build: Use AC_HEADER_MAJOR to find device macros
authorMike Gilbert <floppym@gentoo.org>
Tue, 19 Apr 2016 18:27:22 +0000 (14:27 -0400)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 24 Apr 2016 05:12:42 +0000 (08:12 +0300)
commit7a5b301e3adb8e054288518a325135a1883c1c6c
treef287601afaad4526f9c01072904ee6bcd597bd75
parentabf9beb7d667d3604774753cf698c439c6fbc736
build: Use AC_HEADER_MAJOR to find device macros

Depending on the OS/libc, device macros are defined in different
headers. This change ensures we include the right one.

sys/types.h - BSD
sys/mkdev.h - Sun
sys/sysmacros.h - glibc (Linux)

glibc currently pulls sys/sysmacros.h into sys/types.h, but this may
change in a future release.

https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html
configure.ac
grub-core/osdep/devmapper/getroot.c
grub-core/osdep/devmapper/hostdisk.c
grub-core/osdep/linux/getroot.c
grub-core/osdep/unix/getroot.c