]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables: Add limits.h to get INT_MIN, INT_MAX, ...
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 25 Feb 2009 07:25:17 +0000 (08:25 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 25 Feb 2009 07:25:17 +0000 (08:25 +0100)
Fix build failure of iptables utilities on debian/ubuntu, maybe other distros.
The values INT_MIN and INT_MAX are used by many filters and these
are defined in limits.h
---
  patch against current iptables.git

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/xtables.h.in

index 3f556c1c9a147c2b87496bdaf7437b0f922a2d33..d86276e74c4ebc9bd4916d3ee771379b77d92134 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <sys/socket.h> /* PF_* */
 #include <sys/types.h>
+#include <limits.h>
 #include <stdbool.h>
 #include <netinet/in.h>
 #include <net/if.h>