Commit c3b2adbf authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji Committed by David S. Miller

[NET]: Fix some userland header bustage.

parent 2db233d6
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <linux/wait.h> #include <linux/wait.h>
#include <linux/list.h> #include <linux/list.h>
#endif #endif
#include <linux/compiler.h>
/* Responses from hook functions. */ /* Responses from hook functions. */
#define NF_DROP 0 #define NF_DROP 0
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <linux/if_arp.h> #include <linux/if_arp.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#endif #endif
#include <linux/compiler.h>
#include <linux/netfilter_arp.h> #include <linux/netfilter_arp.h>
#define ARPT_FUNCTION_MAXNAMELEN 30 #define ARPT_FUNCTION_MAXNAMELEN 30
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/ip.h> #include <linux/ip.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#endif #endif
#include <linux/compiler.h>
#include <linux/netfilter_ipv4.h> #include <linux/netfilter_ipv4.h>
#define IPT_FUNCTION_MAXNAMELEN 30 #define IPT_FUNCTION_MAXNAMELEN 30
...@@ -336,8 +337,8 @@ ipt_get_target(struct ipt_entry *e) ...@@ -336,8 +337,8 @@ ipt_get_target(struct ipt_entry *e)
/* /*
* Main firewall chains definitions and global var's definitions. * Main firewall chains definitions and global var's definitions.
*/ */
static DECLARE_MUTEX(ipt_mutex);
#ifdef __KERNEL__ #ifdef __KERNEL__
static DECLARE_MUTEX(ipt_mutex);
#include <linux/init.h> #include <linux/init.h>
extern void ipt_init(void) __init; extern void ipt_init(void) __init;
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/ipv6.h> #include <linux/ipv6.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#endif #endif
#include <linux/compiler.h>
#include <linux/netfilter_ipv6.h> #include <linux/netfilter_ipv6.h>
#define IP6T_FUNCTION_MAXNAMELEN 30 #define IP6T_FUNCTION_MAXNAMELEN 30
...@@ -106,7 +107,9 @@ struct ip6t_counters ...@@ -106,7 +107,9 @@ struct ip6t_counters
u_int64_t pcnt, bcnt; /* Packet and byte counters */ u_int64_t pcnt, bcnt; /* Packet and byte counters */
}; };
#ifdef __KERNEL__
static DECLARE_MUTEX(ip6t_mutex); static DECLARE_MUTEX(ip6t_mutex);
#endif
/* Values for "flag" field in struct ip6t_ip6 (general ip6 structure). */ /* Values for "flag" field in struct ip6t_ip6 (general ip6 structure). */
#define IP6T_F_PROTO 0x01 /* Set if rule cares about upper #define IP6T_F_PROTO 0x01 /* Set if rule cares about upper
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment