From 4d8e68c42fb0bd5518f61670720af690fca302e0 Mon Sep 17 00:00:00 2001 From: Arvind Sankar Date: Fri, 26 Jun 2020 17:20:30 -0400 Subject: Avoid installing kernel headers on FreeBSD The kernel headers are installed for DKMS on linux, so don't install them unless we're building on linux. Reviewed-by: Brian Behlendorf Signed-off-by: Arvind Sankar Closes #10506 --- include/sys/lua/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/sys/lua/Makefile.am') diff --git a/include/sys/lua/Makefile.am b/include/sys/lua/Makefile.am index e9d1185a4..8b4dafaa8 100644 --- a/include/sys/lua/Makefile.am +++ b/include/sys/lua/Makefile.am @@ -10,6 +10,8 @@ libzfs_HEADERS = $(COMMON_H) endif if CONFIG_KERNEL +if BUILD_LINUX kerneldir = @prefix@/src/zfs-$(VERSION)/include/sys/lua kernel_HEADERS = $(COMMON_H) endif +endif -- cgit v1.2.3