Permalink
Browse files

Use autoconf variable for C preprocessor

This fixes the build when cross-compiling, where the preprocessor might
be prefixed.

Signed-off-by: Ben Wolsieffer <benwolsieffer@gmail.com>
  • Loading branch information...
lopsided98 committed Dec 4, 2018
1 parent c40a112 commit 3c7eaa60a35f7d9059e6ff3416247f06bda722dc
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/kernel.m4
@@ -275,7 +275,7 @@ AC_DEFUN([ZFS_AC_KERNEL], [
AS_IF([test "$utsrelease"], [
kernsrcver=`(echo "#include <$utsrelease>";
echo "kernsrcver=UTS_RELEASE") |
cpp -I $kernelbuild/include |
${CPP} -I $kernelbuild/include - |
grep "^kernsrcver=" | cut -d \" -f 2`
AS_IF([test -z "$kernsrcver"], [

0 comments on commit 3c7eaa6

Please sign in to comment.