summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-07-25 14:00:45 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-07-25 14:00:45 +0000
commitecabac03884714728bf84d0d7081e38a8bb3e1e9 (patch)
tree1648d340fabc87f79ac6b52d747c6403fe830a19 /package
parenta6291dd47e269e36c82be9fec6d397a0f1c548cf (diff)
downloadmtk-20170518-ecabac03884714728bf84d0d7081e38a8bb3e1e9.zip
mtk-20170518-ecabac03884714728bf84d0d7081e38a8bb3e1e9.tar.gz
mtk-20170518-ecabac03884714728bf84d0d7081e38a8bb3e1e9.tar.bz2
Fix aodv-uu compilation on 2.4 kernels (#2116)
SVN-Revision: 8156
Diffstat (limited to 'package')
-rw-r--r--package/aodv-uu/patches/005-linux_2.6.22_skbuff.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/aodv-uu/patches/005-linux_2.6.22_skbuff.patch b/package/aodv-uu/patches/005-linux_2.6.22_skbuff.patch
index 6a57acc..0831c5f 100644
--- a/package/aodv-uu/patches/005-linux_2.6.22_skbuff.patch
+++ b/package/aodv-uu/patches/005-linux_2.6.22_skbuff.patch
@@ -9,7 +9,7 @@ Index: aodv-uu-0.9.3/lnx/kaodv-compat.h
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
+
-+#define ip_hdr(_skb) _skb->nh.iph
++#define ip_hdr(_skb) (_skb)->nh.iph
+#define skb_reset_network_header(_skb) do { \
+ _skb->nh.iph = (struct iphdr *)_skb->data; \
+ } while (0);