diff options
author | Serhey Popovych <serhe.popovych@gmail.com> | 2019-11-29 11:21:27 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2019-12-09 11:00:03 +0100 |
commit | a1ccbae83744041bddf4038323a3428e8a20ef72 (patch) | |
tree | 6f2b47c3392575b3e86b7551e504c716b879d6f4 | |
parent | d2263d22746df101cb63c0293e0646fada46263a (diff) |
configure.ac: Better match for ipv6_skip_exthdr() frag_offp arg presence
On older kernels (i.e. ones before commit 5c3a0fd7d0fc ("ip*.h: Remove
extern from function prototypes") in upstream since v3.13) we fail to
match number of arguments ipv6_skip_exthdr() correctly. Configure
chooses 3 args, while function has actually 4 args.
This happens because on these kernels tab (\t) is used for intendation
between function result type and function name.
Fix by matching either space for kernels with mentioned change or tab
for older kernels to select number of arguments correctly.
Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 246110d..e0025df 100644 --- a/configure.ac +++ b/configure.ac @@ -325,7 +325,7 @@ fi AC_MSG_CHECKING([kernel source for ipv6_skip_exthdr args]) if test -f $ksourcedir/include/net/ipv6.h && \ - $AWK '/ ipv6_skip_exthdr\(/,/\)/' $ksourcedir/include/net/ipv6.h | $GREP -q 'frag_offp'; then + $AWK '/( |\t)ipv6_skip_exthdr\(/,/\)/' $ksourcedir/include/net/ipv6.h | $GREP -q 'frag_offp'; then AC_MSG_RESULT(4 args) AC_SUBST(HAVE_IPV6_SKIP_EXTHDR_ARGS, 4) else |