From: Matt Kraai <kraai@ftbfs.org>
To: Patrick McHardy <kaber@trash.net>,
"David S. Miller" <davem@davemloft.net>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org, stable@kernel.org
Subject: [PATCH] netfilter: Move linux/in.h and linux/in6.h inclusions outside of #ifdef __KERNEL__
Date: Thu, 31 Jul 2008 01:35:25 -0700 [thread overview]
Message-ID: <20080731083525.GC7164@ftbfs.org> (raw)
From: Matt Kraai <kraai@ftbfs.org>
netfilter.h can't be used in userspace without including linux/in.h
and linux/in6.h first. netfilter.h includes its own linux/in.h and
linux/in6.h include statements, these are stripped by make
headers-install because they are inside #ifdef __KERNEL__ however.
Move them out to fix this.
Signed-off-by: Matt Kraai <kraai@ftbfs.org>
---
The original report of this bug is at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487103.
This patch applies to the latest linux-2.6 tree.
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index 0c5eb7e..6060e56 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -7,13 +7,13 @@
#include <linux/net.h>
#include <linux/netdevice.h>
#include <linux/if.h>
-#include <linux/in.h>
-#include <linux/in6.h>
#include <linux/wait.h>
#include <linux/list.h>
#include <net/net_namespace.h>
#endif
#include <linux/types.h>
+#include <linux/in.h>
+#include <linux/in6.h>
#include <linux/compiler.h>
/* Responses from hook functions. */
next reply other threads:[~2008-07-31 9:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 8:35 Matt Kraai [this message]
2008-08-01 6:30 ` [PATCH] netfilter: Move linux/in.h and linux/in6.h inclusions outside of #ifdef __KERNEL__ 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=20080731083525.GC7164@ftbfs.org \
--to=kraai@ftbfs.org \
--cc=akpm@osdl.org \
--cc=davem@davemloft.net \
--cc=kaber@trash.net \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@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