Skip to contentSkip to conversation

grub-core/osdep/unix/geroot.c needs to include mkdev.h

PATCH In review Toomas Soome 2 participants 2 messages Apr 13, 2015

lore
Share & tools
lore
#0 lore raw

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
index ccee7ce..b98b2df 100644
@@ -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>
#1 lore raw

В 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.h for makedev() function in grub-core/osdep/unix/getroot.c (fix for compiler warning).

diff attached.

rgds,
toomas

yes, that's probably the most simple fix. Thanks!