* [PATCH] Missing limits.h includes
@ 2008-08-19 15:37 Phil Oester
2008-09-01 13:08 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Phil Oester @ 2008-08-19 15:37 UTC (permalink / raw)
To: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
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 <kernel@linuxace.com>
[-- Attachment #2: patch-ipt-limits --]
[-- Type: text/plain, Size: 1196 bytes --]
diff -ruN ipt-orig/extensions/libxt_esp.c ipt-new/extensions/libxt_esp.c
--- ipt-orig/extensions/libxt_esp.c 2008-08-18 14:55:57.000000000 -0700
+++ ipt-new/extensions/libxt_esp.c 2008-08-19 08:16:38.000000000 -0700
@@ -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>
diff -ruN ipt-orig/extensions/libxt_owner.c ipt-new/extensions/libxt_owner.c
--- ipt-orig/extensions/libxt_owner.c 2008-08-18 14:55:57.000000000 -0700
+++ ipt-new/extensions/libxt_owner.c 2008-08-19 08:16:58.000000000 -0700
@@ -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>
diff -ruN ipt-orig/extensions/libxt_time.c ipt-new/extensions/libxt_time.c
--- ipt-orig/extensions/libxt_time.c 2008-08-18 14:55:57.000000000 -0700
+++ ipt-new/extensions/libxt_time.c 2008-08-19 08:17:33.000000000 -0700
@@ -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))
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Missing limits.h includes
2008-08-19 15:37 [PATCH] Missing limits.h includes Phil Oester
@ 2008-09-01 13:08 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2008-09-01 13:08 UTC (permalink / raw)
To: Phil Oester; +Cc: netfilter-devel
Phil Oester wrote:
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-01 13:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 15:37 [PATCH] Missing limits.h includes Phil Oester
2008-09-01 13:08 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.