xtables-addons: update to version 2.3, adds linux 3.10 compatibility
[openwrt/svn-archive/archive.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 */