aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2014-04-30 22:15:40 +0000
committerHauke Mehrtens <hauke@openwrt.org>2014-04-30 22:15:40 +0000
commit8cc221b9a7752aaca48e0dc155fc9e1412d04bdf (patch)
tree19cd29cf05c083977c521af9832018dc6ad05ea8 /package/network
parent842e6071e4e9330b75a807752f2a675afe220588 (diff)
downloadmaster-187ad058-8cc221b9a7752aaca48e0dc155fc9e1412d04bdf.tar.gz
master-187ad058-8cc221b9a7752aaca48e0dc155fc9e1412d04bdf.tar.bz2
master-187ad058-8cc221b9a7752aaca48e0dc155fc9e1412d04bdf.zip
xtables-addons: #15516 Fix compile under linux 3.14
Add compatibility inline function. Signed-off-by: Jan Kardell <jan.kardell@telliq.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rw-r--r--package/network/utils/xtables-addons/patches/004-fix-kernel-3.14.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/network/utils/xtables-addons/patches/004-fix-kernel-3.14.patch b/package/network/utils/xtables-addons/patches/004-fix-kernel-3.14.patch
new file mode 100644
index 0000000000..c866aef112
--- /dev/null
+++ b/package/network/utils/xtables-addons/patches/004-fix-kernel-3.14.patch
@@ -0,0 +1,14 @@
+--- a/extensions/compat_xtables.h
++++ b/extensions/compat_xtables.h
+@@ -89,4 +89,11 @@ static inline void proc_net_remove(struc
+ }
+ #endif
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
++static inline u32 net_random(void)
++{
++ return prandom_u32();
++}
++#endif
++
+ #endif /* _XTABLES_COMPAT_H */