fix mrd6 compilation on linux 2.4 (remove @LINUX_2_6 from DEPENDS to test it)
authorNicolas Thill <nico@openwrt.org>
Mon, 22 Jan 2007 17:24:36 +0000 (17:24 +0000)
committerNicolas Thill <nico@openwrt.org>
Mon, 22 Jan 2007 17:24:36 +0000 (17:24 +0000)
SVN-Revision: 6179

ipv6/mrd6/patches/02-missing_netlink_defs.patch

index e8a437c..6e73379 100644 (file)
@@ -1,14 +1,15 @@
 diff -urN mrd6-0.9.5/include/mrdpriv/linux/netlink_missing_defs.h mrd6-0.9.5.new/include/mrdpriv/linux/netlink_missing_defs.h
 --- mrd6-0.9.5/include/mrdpriv/linux/netlink_missing_defs.h    1970-01-01 01:00:00.000000000 +0100
 +++ mrd6-0.9.5.new/include/mrdpriv/linux/netlink_missing_defs.h        2007-01-11 12:26:55.000000000 +0100
-@@ -0,0 +1,40 @@
-+#include <linux/if_link.h>
-+#include <linux/if_addr.h>
-+#include <linux/neighbour.h>
+@@ -0,0 +1,41 @@
 +#include <linux/version.h>
 +
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
 +
++#include <linux/if_link.h>
++#include <linux/if_addr.h>
++#include <linux/neighbour.h>
++
 +#ifndef IFA_RTA
 +#define IFA_RTA(r) \
 +       ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))