aboutsummaryrefslogtreecommitdiffstats
path: root/include/os/freebsd/spl/sys/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'include/os/freebsd/spl/sys/Makefile.am')
-rw-r--r--include/os/freebsd/spl/sys/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/os/freebsd/spl/sys/Makefile.am b/include/os/freebsd/spl/sys/Makefile.am
index ac80f68cd..c95c9d65a 100644
--- a/include/os/freebsd/spl/sys/Makefile.am
+++ b/include/os/freebsd/spl/sys/Makefile.am
@@ -69,4 +69,7 @@ KERNEL_H = \
zmod.h \
zone.h
-EXTRA_DIST = $(KERNEL_H)
+if CONFIG_KERNEL
+kerneldir = @prefix@/src/zfs-$(VERSION)/include/spl/sys
+kernel_HEADERS = $(KERNEL_H)
+endif