1 From 3be9a4eb3a024f7adf605fe57da1491f7549c3a2 Mon Sep 17 00:00:00 2001
2 From: Alan Coopersmith <alan.coopersmith@oracle.com>
3 Date: Sun, 20 Dec 2015 19:33:37 -0800
4 Subject: [PATCH] metadata: need to include <sys/mkdev.h> on Solaris for
7 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
10 metadata/metatree.c | 4 ++++
11 2 files changed, 5 insertions(+), 1 deletion(-)
13 diff --git a/configure.ac b/configure.ac
14 index bb358c6..3672b00 100644
17 @@ -772,7 +772,7 @@ AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
18 dnl ==========================================================================
19 dnl Look for various fs info getters
21 -AC_CHECK_HEADERS([sys/statfs.h sys/statvfs.h sys/vfs.h sys/mount.h sys/param.h])
22 +AC_CHECK_HEADERS([sys/statfs.h sys/statvfs.h sys/vfs.h sys/mount.h sys/param.h sys/mkdev.h])
23 AC_CHECK_FUNCS(statvfs statfs)
24 AC_CHECK_MEMBERS([struct statfs.f_fstypename, struct statfs.f_bavail],,, [#include <sys/types.h>
26 diff --git a/metadata/metatree.c b/metadata/metatree.c
27 index 89942cb..b5eeb36 100644
28 --- a/metadata/metatree.c
29 +++ b/metadata/metatree.c
35 +#include <sys/mkdev.h> /* needed for major() & minor() on Solaris */
39 #include "metabuilder.h"