From 27fbc05657c90d324d248c6144b1c4fbb49979af Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Mon, 24 Oct 2011 05:26:40 +0000 Subject: [PATCH] Include only when compiling kernel module. MFC after: 2 weeks --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c index bb22dfb4f550..858bf598aa33 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c @@ -37,7 +37,9 @@ #include #include #include +#ifdef _KERNEL #include +#endif #include "zfs_namecheck.h" static uint64_t dsl_dir_space_towrite(dsl_dir_t *dd);