Merge pull request #72 from szogi/master
[openwrt-github/.git] / package / network / utils / xtables-addons / patches / 002-fix-kernel-version-detection.patch
1 --- a/configure.ac
2 +++ b/configure.ac
3 @@ -44,7 +44,7 @@ regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
4  
5  if test -n "$kbuilddir"; then
6         AC_MSG_CHECKING([kernel version that we will build against])
7 -       krel="$(make -sC "$kbuilddir" M=$PWD kernelrelease | $AWK -v 'FS=[[^0-9.]]' '{print $1; exit}')";
8 +       krel="$(make -sC "$kbuilddir" M=$PWD kernelversion | $AWK -v 'FS=[[^0-9.]]' '{print $1; exit}')";
9         save_IFS=$IFS;
10         IFS='.';
11         set x $krel;