use a default uclibc++ config instead of multiple copies of the same
[openwrt/svn-archive/archive.git] / ipv6 / mrd6 / patches / 02-missing_netlink_defs.patch
1 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
2 --- mrd6-0.9.5/include/mrdpriv/linux/netlink_missing_defs.h 1970-01-01 01:00:00.000000000 +0100
3 +++ mrd6-0.9.5.new/include/mrdpriv/linux/netlink_missing_defs.h 2007-01-11 12:26:55.000000000 +0100
4 @@ -0,0 +1,40 @@
5 +#include <linux/if_link.h>
6 +#include <linux/if_addr.h>
7 +#include <linux/neighbour.h>
8 +#include <linux/version.h>
9 +
10 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
11 +
12 +#ifndef IFA_RTA
13 +#define IFA_RTA(r) \
14 + ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
15 +#endif
16 +#ifndef IFA_PAYLOAD
17 +#define IFA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifaddrmsg))
18 +#endif
19 +
20 +#ifndef IFLA_RTA
21 +#define IFLA_RTA(r) \
22 + ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
23 +#endif
24 +#ifndef IFLA_PAYLOAD
25 +#define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
26 +#endif
27 +
28 +#ifndef NDA_RTA
29 +#define NDA_RTA(r) \
30 + ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg))))
31 +#endif
32 +#ifndef NDA_PAYLOAD
33 +#define NDA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ndmsg))
34 +#endif
35 +
36 +#ifndef NDTA_RTA
37 +#define NDTA_RTA(r) \
38 + ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndtmsg))))
39 +#endif
40 +#ifndef NDTA_PAYLOAD
41 +#define NDTA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ndtmsg))
42 +#endif
43 +
44 +#endif
45 diff -urN mrd6-0.9.5/src/linux/linux_unicast_route.cpp mrd6-0.9.5.new/src/linux/linux_unicast_route.cpp
46 --- mrd6-0.9.5/src/linux/linux_unicast_route.cpp 2006-01-06 00:08:02.000000000 +0100
47 +++ mrd6-0.9.5.new/src/linux/linux_unicast_route.cpp 2007-01-11 12:24:08.000000000 +0100
48 @@ -22,6 +22,7 @@
49 */
50
51 #include <mrdpriv/linux/unicast_route.h>
52 +#include <mrdpriv/linux/netlink_missing_defs.h>
53
54 #include <mrd/mrd.h>
55 #include <mrd/interface.h>