Fix aodv-uu compilation on 2.4 kernels (#2116)
authorFlorian Fainelli <florian@openwrt.org>
Wed, 25 Jul 2007 14:00:45 +0000 (14:00 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 25 Jul 2007 14:00:45 +0000 (14:00 +0000)
SVN-Revision: 8156

package/aodv-uu/patches/005-linux_2.6.22_skbuff.patch

index 6a57acc0bf02ff4d0805e27e6cd5cb297dba2fc8..0831c5f7587237f23a31c88fbd5cc979851da260 100644 (file)
@@ -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);