summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2018-10-24 13:54:03 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-10-25 10:25:22 +0200
commit5a8de47b3c250521dd632cdedaac6db88367defa (patch)
tree9a04e21c25fc14b7c09f6fac76b6db790e9a49a7 /tools
parent5e91c9d9cd3fd557226ca75fed58816b9eee7e07 (diff)
netfilter: bridge: define INT_MIN & INT_MAX in userspace
With 4.19, programs like ebtables fail to build when they include "linux/netfilter_bridge.h". It is caused by commit 94276fa8a2a4 which added a use of INT_MIN and INT_MAX to the header: : In file included from /usr/include/linux/netfilter_bridge/ebtables.h:18, : from include/ebtables_u.h:28, : from communication.c:23: : /usr/include/linux/netfilter_bridge.h:30:20: error: 'INT_MIN' undeclared here (not in a function) : NF_BR_PRI_FIRST = INT_MIN, : ^~~~~~~ Define these constants by including "limits.h" when !__KERNEL__ (the same way as for other netfilter_* headers). Fixes: 94276fa8a2a4 ("netfilter: bridge: Expose nf_tables bridge hook priorities through uapi") Signed-off-by: Jiri Slaby <jslaby@suse.cz> Acked-by: Máté Eckl <ecklm94@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions