diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2025-06-05 09:15:47 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2025-06-06 11:51:42 +0200 |
commit | bd6c6324afece01e26fee76405624ef4c5d0c1a9 (patch) | |
tree | 44335ae8e24b12e8ff67c52b639cc8e171fc3128 | |
parent | e942285a3380c757f6267badabd88d4c847bba5c (diff) |
Check for 'int \*id' in the pernet_operations struct
fails for some later versions of kernels as the declaration
is now 'int * const id'.
Kernel Commit 768e4bb6a75e3c6a034df7c67edac20bd222857e changed
the variable declaration that ipset uses to ensure presence
of the pernet ops id.
Modify the pattern match to include both the newer change while
still supporting the original declaration.
Reported and original patch submitted by Mike Pagano <mpagano@gentoo.org>,
single pattern suggested by Jeremy Sowden <jeremy@azazel.net>
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 b8e9433..f6e1c36 100644 --- a/configure.ac +++ b/configure.ac @@ -401,7 +401,7 @@ fi AC_MSG_CHECKING([kernel source for id in struct pernet_operations]) if test -f $ksourcedir/include/net/net_namespace.h && \ - $AWK '/^struct pernet_operations /,/^}/' $ksourcedir/include/net/net_namespace.h | $GREP -q 'int \*id;'; then + $AWK '/^struct pernet_operations /,/^}/' $ksourcedir/include/net/net_namespace.h | $GREP -qE 'int \*( const )?id;'; then AC_MSG_RESULT(yes) AC_SUBST(HAVE_NET_OPS_ID, define) else |