xtables-addons: #15516 Fix compile under linux 3.14
[openwrt/svn-archive/archive.git] / package / network / utils / xtables-addons / patches / 004-fix-kernel-3.14.patch
1 --- a/extensions/compat_xtables.h
2 +++ b/extensions/compat_xtables.h
3 @@ -89,4 +89,11 @@ static inline void proc_net_remove(struc
4 }
5 #endif
6
7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
8 +static inline u32 net_random(void)
9 +{
10 + return prandom_u32();
11 +}
12 +#endif
13 +
14 #endif /* _XTABLES_COMPAT_H */