packages: uob-nomad: fix compilation

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>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@38476 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2013-10-20 15:58:22 +00:00
parent 01d8ae9438
commit e637cb0098
2 changed files with 31 additions and 0 deletions

View File

@ -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;

View File

@ -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>