packages: uob-nomad: fix compilation
authorGabor Juhos <juhosg@openwrt.org>
Sun, 20 Oct 2013 15:58:22 +0000 (15:58 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 20 Oct 2013 15:58:22 +0000 (15:58 +0000)
fix compilation

- by integrating net-tools-1.60-STRIP.patch
 from Jiri Popelka <jpopelka@redhat.com>
- if_tr.h is no longer in kernel

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38476

net/uob-nomad/patches/005-linux_if_strip_fix.patch [new file with mode: 0644]
net/uob-nomad/patches/006-linux_if_tr_fix.patch [new file with mode: 0644]

diff --git a/net/uob-nomad/patches/005-linux_if_strip_fix.patch b/net/uob-nomad/patches/005-linux_if_strip_fix.patch
new file mode 100644 (file)
index 0000000..82ffefb
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/Client/net-tools/lib/strip.c
++++ b/Client/net-tools/lib/strip.c
+@@ -21,7 +21,6 @@
+ #include <sys/socket.h>
+ #include <net/if_arp.h>
+ #include <linux/types.h>
+-#include <linux/if_strip.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <ctype.h>
+@@ -35,6 +34,9 @@
+ #include "util.h"
+ #include "intl.h"
++typedef struct {
++  __u8 c[6];
++} MetricomAddress;
+ extern struct hwtype strip_hwtype;
diff --git a/net/uob-nomad/patches/006-linux_if_tr_fix.patch b/net/uob-nomad/patches/006-linux_if_tr_fix.patch
new file mode 100644 (file)
index 0000000..778ce38
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/Client/net-tools/lib/tr.c
++++ b/Client/net-tools/lib/tr.c
+@@ -20,7 +20,7 @@
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <net/if_arp.h>
+-#include <linux/if_tr.h>
++#include <netinet/if_tr.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <errno.h>