summaryrefslogtreecommitdiffstats
path: root/include/blkdev.h
diff options
context:
space:
mode:
authorKarel Zak2011-01-20 23:16:41 +0100
committerKarel Zak2011-01-20 23:16:41 +0100
commit960f668f17ae6bb9bd5edea1b9fe05ad4d5c2850 (patch)
treee545b76000f0c75f999f49998c8a80f8a7dfa3ef /include/blkdev.h
parentbuild-sys: link with socketlibs when necessary (diff)
downloadkernel-qcow2-util-linux-960f668f17ae6bb9bd5edea1b9fe05ad4d5c2850.tar.gz
kernel-qcow2-util-linux-960f668f17ae6bb9bd5edea1b9fe05ad4d5c2850.tar.xz
kernel-qcow2-util-linux-960f668f17ae6bb9bd5edea1b9fe05ad4d5c2850.zip
make major and minor available on Solaris
Reported-by: Fabian Groffen <grobian@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/blkdev.h')
-rw-r--r--include/blkdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/blkdev.h b/include/blkdev.h
index 5344a2bab..86fffcff6 100644
--- a/include/blkdev.h
+++ b/include/blkdev.h
@@ -6,6 +6,10 @@
#include <fcntl.h>
#include <unistd.h>
+#if HAVE_SYS_MKDEV_H
+# include <sys/mkdev.h> /* major and minor on Solaris */
+#endif
+
#define DEFAULT_SECTOR_SIZE 512
#ifdef __linux__