]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
src: Missing limits.h includes
authorPhil Oester <kernel@linuxace.com>
Mon, 1 Sep 2008 13:07:26 +0000 (15:07 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 1 Sep 2008 13:07:26 +0000 (15:07 +0200)
Latest git doesn't compile for me on Fedora 9 due to various *MAX constants
being undefined.  Below adds the include in 3 files which need it (although
I can't see why this isn't required in 1.4.1.1).

Signed-off-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
extensions/libxt_esp.c
extensions/libxt_owner.c
extensions/libxt_time.c

index 544d7b39ddc23bc5c73d9255d87bb371fe993270..06da33e3851f6406a0516ce44f1ba4d18125150d 100644 (file)
@@ -5,6 +5,8 @@
 #include <stdlib.h>
 #include <getopt.h>
 #include <errno.h>
+#include <limits.h>
+
 #include <xtables.h>
 #include <linux/netfilter/xt_esp.h>
 
index 7c66663351446e47da7be865df51168d4b28a24a..7cad35c347779c3583a89cca11c48e11c2271a27 100644 (file)
@@ -12,6 +12,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <limits.h>
 
 #include <xtables.h>
 #include <linux/netfilter/xt_owner.h>
index f2bb51fd9277efd3396ccf8c1d3f1f03c1fc9962..989806deb567327c2e9c83884597a3a9a9b71e24 100644 (file)
@@ -18,6 +18,8 @@
 #include <stdlib.h>
 #include <stddef.h>
 #include <time.h>
+#include <limits.h>
+
 #include <linux/netfilter/xt_time.h>
 #include <xtables.h>
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*x))