Fix 2.4 compilation
authorFlorian Fainelli <florian@openwrt.org>
Thu, 28 Dec 2006 02:31:19 +0000 (02:31 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 28 Dec 2006 02:31:19 +0000 (02:31 +0000)
SVN-Revision: 5915

net/aodv-uu/patches/004-linux_2.6.19_includes.patch

index 7ee2220636b332ad9fd5efba039a2f241eb9ffe6..92cae3e1c822f331c855b46703d201fe637b9896 100644 (file)
  #include <getopt.h>
 --- aodv-uu-0.9.3-old/nl.c     2006-09-20 19:58:38.000000000 +0200
 +++ aodv-uu-0.9.3/nl.c 2006-12-16 22:29:55.000000000 +0100
-@@ -33,6 +33,7 @@
+@@ -33,6 +33,10 @@
  #include <netinet/in.h>
  #include <arpa/inet.h>
  #include <linux/rtnetlink.h>
++#include <linux/version.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
 +#include <linux/if_addr.h>
++#endif
  
  #include "defs.h"
  #include "lnx/kaodv-netlink.h"