getroot: include sys/mkdev.h for makedev

Solaris (like) systems need to include sys/mkdev.h for makedev() function.
This commit is contained in:
Toomas Soome 2015-04-13 19:52:28 +03:00 committed by Andrei Borzenkov
parent 5b5d8666a7
commit 677dcaa92b

View file

@ -57,6 +57,9 @@
#endif #endif
#include <sys/types.h> #include <sys/types.h>
#if defined(HAVE_SYS_MKDEV_H)
#include <sys/mkdev.h>
#endif
#if defined(HAVE_LIBZFS) && defined(HAVE_LIBNVPAIR) #if defined(HAVE_LIBZFS) && defined(HAVE_LIBNVPAIR)
# include <grub/util/libzfs.h> # include <grub/util/libzfs.h>