diff --git a/grub-core/osdep/unix/getroot.c b/grub-core/osdep/unix/getroot.c index ccee7ce16..b98b2dfb0 100644 --- a/grub-core/osdep/unix/getroot.c +++ b/grub-core/osdep/unix/getroot.c @@ -57,6 +57,9 @@ #endif #include +#if defined(HAVE_SYS_MKDEV_H) +#include +#endif #if defined(HAVE_LIBZFS) && defined(HAVE_LIBNVPAIR) # include