From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Jan Engelhardt <jengelh@inai.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH 2/2] build: resolve compile abort in libxt_limit on RHEL5
Date: Wed, 10 Oct 2012 13:29:15 +0200 [thread overview]
Message-ID: <20121010112915.GA25237@1984> (raw)
In-Reply-To: <1349865314-27640-3-git-send-email-jengelh@inai.de>
On Wed, Oct 10, 2012 at 12:35:14PM +0200, Jan Engelhardt wrote:
> libxt_limit.c: In function 'print_rate':
> libxt_limit.c:124: error: 'INFINITY' undeclared (first use in
> this function)
>
> The default mode of glibc-2.15's <features.h> sets
> "-D_POSIX_C_SOURCE=200809L", and therefore "-D_ISOC99_SOURCE". However,
> on þe olde RHEL 5's glibc-2.5, it only has "-D_POSIX_C_SOURCE=200112L".
>
> Explicitly draw in the definition of INFINITY by always defining
> _ISOC99_SOURCE. By doing this, we are moving off of the default set, so
> _BSD_SOURCE also needs to be explicitly set to get at IFNAMSIZ that is
> used in xt_hashlimit.h.
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2012-10-10 11:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-10 10:35 iptables -stable patches Jan Engelhardt
2012-10-10 10:35 ` [PATCH 1/2] build: remove symlink-only extensions from static object list Jan Engelhardt
2012-10-10 11:29 ` Pablo Neira Ayuso
2012-10-10 10:35 ` [PATCH 2/2] build: resolve compile abort in libxt_limit on RHEL5 Jan Engelhardt
2012-10-10 11:29 ` Pablo Neira Ayuso [this message]
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=20121010112915.GA25237@1984 \
--to=pablo@netfilter.org \
--cc=jengelh@inai.de \
--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;
as well as URLs for NNTP newsgroup(s).