grub-core/osdep/unix/geroot.c needs to include mkdev.h
PATCH 1/1 grub-core/osdep/unix/geroot.c needs to include mkdev.h
hi!
Pushing some fixes for problems I have found while building grub2 in illumos based system.
Solaris (like) systems need to include sys/mkdev.h for makedev() function in grub-core/osdep/unix/getroot.c (fix for compiler warning).
diff attached.
rgds,
toomas
grub-core/osdep/unix/getroot.c +3 -0
@@ -57,6 +57,9 @@#endif #include <sys/types.h> +#if defined(HAVE_SYS_MKDEV_H ) +#include <sys/mkdev.h> +#endif #if defined(HAVE_LIBZFS ) && defined(HAVE_LIBNVPAIR )# include <grub/util/libzfs.h>
В Mon, 13 Apr 2015 13:37:52 +0300
Toomas Soome <[email protected]> пишет:
Quoted 13 lines
hi!
Pushing some fixes for problems I have found while building grub2 in illumos based system.
Solaris (like) systems need to include
sys/mkdev.hformakedev()function ingrub-core/osdep/unix/getroot.c(fix for compiler warning).diff attached.
rgds,
toomas
yes, that's probably the most simple fix. Thanks!