Missing limits.h includes
PATCH 1/1 Missing limits.h includes
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).
Phil
Signed-off-by Phil Oester <[email protected]>
extensions/libxt_esp.c +2 -0
@@ -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>
extensions/libxt_owner.c +1 -0
@@ -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>
extensions/libxt_time.c +2 -0
@@ -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))
Patrick McHardy
AppliedQuoted 3 lines · Phil Oester
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).
Applied, thanks.