Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

headers, netfilter: Add missing #include <limits.h> for userland

Various headers use INT_MIN and INT_MAX, which are defined for
userland in <limits.h>.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ben Hutchings and committed by
David S. Miller
598aaff2 3828620b

+9
+3
include/linux/netfilter_decnet.h
··· 11 11 12 12 /* only for userspace compatibility */ 13 13 #ifndef __KERNEL__ 14 + 15 + #include <limits.h> /* for INT_MIN, INT_MAX */ 16 + 14 17 /* IP Cache bits. */ 15 18 /* Src IP address. */ 16 19 #define NFC_DN_SRC 0x0001
+3
include/linux/netfilter_ipv4.h
··· 9 9 10 10 /* only for userspace compatibility */ 11 11 #ifndef __KERNEL__ 12 + 13 + #include <limits.h> /* for INT_MIN, INT_MAX */ 14 + 12 15 /* IP Cache bits. */ 13 16 /* Src IP address. */ 14 17 #define NFC_IP_SRC 0x0001
+3
include/linux/netfilter_ipv6.h
··· 12 12 13 13 /* only for userspace compatibility */ 14 14 #ifndef __KERNEL__ 15 + 16 + #include <limits.h> /* for INT_MIN, INT_MAX */ 17 + 15 18 /* IP Cache bits. */ 16 19 /* Src IP address. */ 17 20 #define NFC_IP6_SRC 0x0001