summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sys/zfs_rlock.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/sys/zfs_rlock.h b/include/sys/zfs_rlock.h
index 5322f3bc7..5373f0d57 100644
--- a/include/sys/zfs_rlock.h
+++ b/include/sys/zfs_rlock.h
@@ -30,11 +30,14 @@
extern "C" {
#endif
-#ifdef _KERNEL
-
#include <sys/list.h>
#include <sys/avl.h>
+
+#ifdef _KERNEL
#include <sys/condvar.h>
+#else
+#include <sys/zfs_context.h>
+#endif
typedef enum {
RL_READER,
@@ -106,7 +109,6 @@ zfs_rlock_destroy(zfs_rlock_t *zrl)
avl_destroy(&zrl->zr_avl);
mutex_destroy(&zrl->zr_mutex);
}
-#endif /* _KERNEL */
#ifdef __cplusplus
}