patch file cleanup... ick.. kaloz you owe me some love
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6526 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
22
net/srelay/patches/002-linux_2.6.19_rtnetlink_changes.patch
Normal file
22
net/srelay/patches/002-linux_2.6.19_rtnetlink_changes.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff -ruN srelay-0.4.6-old/get-bind.c srelay-0.4.6-new/get-bind.c
|
||||
--- srelay-0.4.6-old/get-bind.c 2003-04-10 04:53:17.000000000 +0200
|
||||
+++ srelay-0.4.6-new/get-bind.c 2006-12-18 12:53:06.000000000 +0100
|
||||
@@ -50,6 +50,18 @@
|
||||
#include <asm/types.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
+#include <linux/version.h>
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
|
||||
+# include <linux/if_addr.h>
|
||||
+#endif
|
||||
+#ifndef IFA_RTA
|
||||
+# define IFA_RTA(r) ((struct rtattr *) ((char *)(r) + NLMSG_ALIGN (sizeof (struct ifaddrmsg))))
|
||||
+# define IFA_PAYLOAD(n) NLMSG_PAYLOAD (n, sizeof (struct ifaddrmsg))
|
||||
+#endif
|
||||
+#ifndef IFLA_RTA
|
||||
+# define IFLA_RTA(r) ((struct rtattr *) ((char *)(r) + NLMSG_ALIGN (sizeof (struct ifinfomsg))))
|
||||
+# define IFLA_PAYLOAD(n) NLMSG_PAYLOAD (n, sizeof (struct ifinfomsg))
|
||||
+#endif
|
||||
|
||||
static int get_ifconf(int, struct addrinfo *);
|
||||
#endif /* defined(LINUX) */
|
Reference in New Issue
Block a user