From: Florian Fainelli Date: Wed, 25 Jul 2007 14:00:45 +0000 (+0000) Subject: Fix aodv-uu compilation on 2.4 kernels (#2116) X-Git-Tag: reboot~28532 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ecabac03884714728bf84d0d7081e38a8bb3e1e9;p=oweals%2Fopenwrt.git Fix aodv-uu compilation on 2.4 kernels (#2116) SVN-Revision: 8156 --- 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 6a57acc0bf..0831c5f758 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 +#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);