Search for the Linux version in the correct header
[openafs.git] / src / config / linux-version
index caa7b25..800b01e 100644 (file)
@@ -57,7 +57,7 @@ for VERS in $LINUX_VERS ; do
            fi
        fi
 
-       vers=`fgrep UTS_RELEASE $LINUX_SRCDIR$VERS/include/linux/version.h |
+       vers=`fgrep UTS_RELEASE "$header" |
                awk 'BEGIN { FS="\"" } { print $2 }'`
        if [ "x$vers" = "x" ] ; then
            echo "ERROR: Cannot build for Linux kernel $VERS:"