File fix-grub2-use-stat-instead-of-udevadm-for-partition-lookup-with-new-glibc.patch of Package grub2.8958

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 <errno.h>
 #include <limits.h>
 
+#if defined(MAJOR_IN_MKDEV)
+#include <sys/mkdev.h>
+#elif defined(MAJOR_IN_SYSMACROS)
+#include <sys/sysmacros.h>
+#endif
+
 # include <sys/ioctl.h>         /* ioctl */
 # include <sys/mount.h>
 # ifndef BLKFLSBUF
openSUSE Build Service is sponsored by