kernel: add some fixes for kernel 3.9
[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 @@ -57,4 +57,11 @@
4
5 #define xt_request_find_match xtnu_request_find_match
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 */