1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../net-tools/hotfix.patch.musl
5 # Copyright (C) 2019 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- net-tools-1.60/lib/econet.c.vanilla 2019-02-06 19:47:27.629019566 +0000
18 +++ net-tools-1.60/lib/econet.c 2019-02-06 19:47:32.601019509 +0000
20 #include <sys/types.h>
21 #include <sys/socket.h>
23 -#include <neteconet/ec.h>
24 +//#include <neteconet/ec.h>
27 #include "net-support.h"
28 --- net-tools-1.60/lib/inet_sr.c.vanilla 2019-02-06 19:51:56.245016504 +0000
29 +++ net-tools-1.60/lib/inet_sr.c 2019-02-06 19:52:38.117016027 +0000
32 #include "net-features.h"
34 +#include <asm-generic/param.h>
37 #define mask_in_addr(x) (((struct sockaddr_in *)&((x).rt_genmask))->sin_addr.s_addr)
38 --- net-tools-1.60/config.h.vanilla 2019-02-06 19:49:27.249018202 +0000
39 +++ net-tools-1.60/config.h 2019-02-06 19:53:47.813015232 +0000
44 -#define HAVE_AFINET6 1
45 +#define HAVE_AFINET6 0
47 #define HAVE_AFATALK 1
49 #define HAVE_AFNETROM 1
51 -#define HAVE_AFECONET 1
52 +#define HAVE_AFECONET 0
53 #define HAVE_AFDECnet 0
58 #define HAVE_HWETHER 1
60 -#define HAVE_HWSLIP 1
61 +#define HAVE_HWSLIP 0
63 #define HAVE_HWTUNNEL 1
68 #define HAVE_HWNETROM 1
69 --- net-tools-1.60/netstat.c.vanilla 2019-02-06 19:53:16.953015584 +0000
70 +++ net-tools-1.60/netstat.c 2019-02-06 19:53:26.949015470 +0000
72 #include <sys/ioctl.h>
75 +#include <asm-generic/param.h>
77 #include "net-support.h"
78 #include "pathnames.h"
79 --- net-tools-1.60/Makefile.vanilla 2019-02-06 19:54:03.729015051 +0000
80 +++ net-tools-1.60/Makefile 2019-02-06 19:57:27.809012724 +0000
83 NET_LIB_NAME = net-tools
85 -PROGS := ifconfig hostname arp netstat route rarp slattach plipconfig nameif ether-wake
86 +PROGS := ifconfig hostname arp netstat route rarp plipconfig nameif ether-wake
89 ifeq ($(HAVE_IP_TOOLS),1)
91 install -m 0755 plipconfig $(BASEDIR)/sbin
92 install -m 0755 rarp ${BASEDIR}/sbin
93 install -m 0755 route ${BASEDIR}/sbin
94 - install -m 0755 slattach $(BASEDIR)/sbin
95 install -m 0755 ether-wake $(BASEDIR)/sbin
96 ifeq ($(HAVE_IP_TOOLS),1)
97 install -m 0755 ipmaddr $(BASEDIR)/sbin