aboutsummaryrefslogtreecommitdiffstats
path: root/include/os/freebsd/spl/sys/proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/os/freebsd/spl/sys/proc.h')
-rw-r--r--include/os/freebsd/spl/sys/proc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/os/freebsd/spl/sys/proc.h b/include/os/freebsd/spl/sys/proc.h
index a455cfbab66f..8583df509b55 100644
--- a/include/os/freebsd/spl/sys/proc.h
+++ b/include/os/freebsd/spl/sys/proc.h
@@ -41,7 +41,7 @@
#include <sys/kmem.h>
#include <sys/malloc.h>
-
+#ifdef _KERNEL
#define CPU curcpu
#define minclsyspri PRIBIO
#define defclsyspri minclsyspri
@@ -111,4 +111,5 @@ zfs_proc_is_caller(proc_t *p)
return (p == curproc);
}
+#endif /* _KERNEL */
#endif /* _OPENSOLARIS_SYS_PROC_H_ */