summaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-04 15:54:54 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-04 15:54:54 +0000
commite9fd85f5f98c888eedaf54203b6caeae5239fad1 (patch)
treea7e839ffc48bb917c6754de0eefb03e5a35f04b0 /toolchain
parentf7da61daa33a91b582fc58b06dde368180908b0e (diff)
downloadbuildroot-novena-e9fd85f5f98c888eedaf54203b6caeae5239fad1.tar.gz
buildroot-novena-e9fd85f5f98c888eedaf54203b6caeae5239fad1.zip
- re-add IFA_ and IFLA_ defines that were removed by YOSHIFUJI Hideaki in cbde1668e4f08e0a150207646010bc65e1e2a42b
Userspace still needs those.
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/kernel-headers/linux-2.6.19-IF-defines.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/linux-2.6.19-IF-defines.patch b/toolchain/kernel-headers/linux-2.6.19-IF-defines.patch
new file mode 100644
index 000000000..f5cb4edd6
--- /dev/null
+++ b/toolchain/kernel-headers/linux-2.6.19-IF-defines.patch
@@ -0,0 +1,35 @@
+diff -Naur linux-headers-2.6.19.orig/include/linux/if_addr.h linux-headers-2.6.19/include/linux/if_addr.h
+--- linux-headers-2.6.19.orig/include/linux/if_addr.h 2006-11-29 13:57:37.000000000 -0800
++++ linux-headers-2.6.19/include/linux/if_addr.h 2006-11-30 08:28:48.000000000 -0800
+@@ -52,4 +52,7 @@
+ __u32 tstamp; /* updated timestamp, hundredths of seconds */
+ };
+
++#define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
++#define IFA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifaddrmsg))
++
+ #endif
+diff -Naur linux-headers-2.6.19.orig/include/linux/if_link.h linux-headers-2.6.19/include/linux/if_link.h
+--- linux-headers-2.6.19.orig/include/linux/if_link.h 2006-11-29 13:57:37.000000000 -0800
++++ linux-headers-2.6.19/include/linux/if_link.h 2006-11-30 08:28:48.000000000 -0800
+@@ -82,6 +82,9 @@
+
+ #define IFLA_MAX (__IFLA_MAX - 1)
+
++#define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
++#define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
++
+ /* ifi_flags.
+
+ IFF_* flags.
+diff -Naur linux-headers-2.6.19.orig/include/linux/rtnetlink.h linux-headers-2.6.19/include/linux/rtnetlink.h
+--- linux-headers-2.6.19.orig/include/linux/rtnetlink.h 2006-11-29 13:57:37.000000000 -0800
++++ linux-headers-2.6.19/include/linux/rtnetlink.h 2006-11-30 08:28:48.000000000 -0800
+@@ -2,6 +2,7 @@
+ #define __LINUX_RTNETLINK_H
+
+ #include <linux/netlink.h>
++#include <linux/if_addr.h>
+ #include <linux/if_link.h>
+
+ /****