Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754126AbYGaJ0S (ORCPT ); Thu, 31 Jul 2008 05:26:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752758AbYGaJ0C (ORCPT ); Thu, 31 Jul 2008 05:26:02 -0400 Received: from neon.ftbfs.org ([83.168.236.214]:37695 "EHLO neon.ftbfs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751330AbYGaJ0B (ORCPT ); Thu, 31 Jul 2008 05:26:01 -0400 X-Greylist: delayed 3017 seconds by postgrey-1.27 at vger.kernel.org; Thu, 31 Jul 2008 05:26:00 EDT Date: Thu, 31 Jul 2008 01:35:25 -0700 From: Matt Kraai To: Patrick McHardy , "David S. Miller" 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__ Message-ID: <20080731083525.GC7164@ftbfs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score-Int: -41 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1301 Lines: 42 From: Matt Kraai 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 --- 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 #include #include -#include -#include #include #include #include #endif #include +#include +#include #include /* Responses from hook functions. */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/