]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
getroot: include sys/mkdev.h for makedev
authorToomas Soome <tsoome@me.com>
Mon, 13 Apr 2015 16:52:28 +0000 (19:52 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Mon, 13 Apr 2015 16:52:28 +0000 (19:52 +0300)
Solaris (like) systems need to include sys/mkdev.h for makedev() function.

grub-core/osdep/unix/getroot.c

index ccee7ce16ed02d2b0a803880555820fbcdc6c4b1..b98b2dfb0eb920741ca6ce2ca5933ee348b8ba1e 100644 (file)
@@ -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>