8eac698bfacca1959ba22fa13ab0648243e3cf84
[openwrt/staging/florian.git] / package / network / utils / xtables-addons / patches / 003-fix-kernel-3.9.patch
1 --- a/extensions/compat_xtables.h
2 +++ b/extensions/compat_xtables.h
3 @@ -82,4 +82,11 @@ static inline void proc_remove(struct pr
4 }
5 #endif
6
7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0)
8 +static inline void proc_net_remove(struct net *net, const char *name)
9 +{
10 + remove_proc_entry(name, net->proc_net);
11 +}
12 +#endif
13 +
14 #endif /* _XTABLES_COMPAT_H */