xtables-addons: update to 2.7 to fix compilation with 4.1
[openwrt/openwrt.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
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)";
8 + krel="$(make -sC "$kbuilddir" M=$PWD kernelversion)";
9 kmajor="${krel%%[[^0-9]]*}";
10 kmajor="$(($kmajor+0))";
11 krel="${krel:${#kmajor}}";