Index: grub-2.02~rc1/grub-core/osdep/linux/hostdisk.c =================================================================== --- grub-2.02~rc1.orig/grub-core/osdep/linux/hostdisk.c +++ grub-2.02~rc1/grub-core/osdep/linux/hostdisk.c @@ -45,6 +45,12 @@ #include #include +#if defined(MAJOR_IN_MKDEV) +#include +#elif defined(MAJOR_IN_SYSMACROS) +#include +#endif + # include /* ioctl */ # include # ifndef BLKFLSBUF