Linux Netfilter development
 help / color / mirror / Atom feed
From: Phil Oester <kernel@linuxace.com>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH] Missing limits.h includes
Date: Tue, 19 Aug 2008 08:37:50 -0700	[thread overview]
Message-ID: <20080819153750.GB13246@linuxace.com> (raw)

[-- 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))

             reply	other threads:[~2008-08-19 15:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-19 15:37 Phil Oester [this message]
2008-09-01 13:08 ` [PATCH] Missing limits.h includes Patrick McHardy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080819153750.GB13246@linuxace.com \
    --to=kernel@linuxace.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox