diff --git a/config/kernel.m4 b/config/kernel.m4 index 952eb3f3e3..9906fc5a31 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -27,6 +27,7 @@ AC_DEFUN([ZFS_AC_CONFIG_KERNEL], [ dnl # compiler options are added by the kernel build system. KERNELCPPFLAGS="$KERNELCPPFLAGS -Werror -DHAVE_SPL -D_KERNEL" KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" + KERNELCPPFLAGS="$KERNELCPPFLAGS -I$SPL" KERNELCPPFLAGS="$KERNELCPPFLAGS -I$SPL/include" KERNELCPPFLAGS="$KERNELCPPFLAGS -include $SPL/spl_config.h" KERNELCPPFLAGS="$KERNELCPPFLAGS -include $TOPDIR/zfs_config.h"