1 diff -Naur net-tools-1.60.org/hostname.c net-tools-1.60/hostname.c
2 --- net-tools-1.60.org/hostname.c 2001-04-08 19:04:23.000000000 +0200
3 +++ net-tools-1.60/hostname.c 2013-08-26 11:56:50.131844273 +0200
8 +#include <linux/version.h>
11 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
12 #include <netdnet/dn.h>
14 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
15 +#include <linux/dn.h>
19 char *Release = RELEASE, *Version = "hostname 1.100 (2001-04-14)";
21 diff -Naur net-tools-1.60.org/lib/tr.c net-tools-1.60/lib/tr.c
22 --- net-tools-1.60.org/lib/tr.c 2000-02-20 22:46:45.000000000 +0100
23 +++ net-tools-1.60/lib/tr.c 2013-08-26 11:57:33.675175033 +0200
25 #include <sys/types.h>
26 #include <sys/socket.h>
27 #include <net/if_arp.h>
28 -#include <linux/if_tr.h>
29 +#include <netinet/if_tr.h>
33 diff -Naur net-tools-1.60.org/lib/x25_sr.c net-tools-1.60/lib/x25_sr.c
34 --- net-tools-1.60.org/lib/x25_sr.c 2000-05-20 15:38:10.000000000 +0200
35 +++ net-tools-1.60/lib/x25_sr.c 2013-08-26 11:56:50.131844273 +0200
37 #include <sys/socket.h>
38 #include <sys/ioctl.h>
39 #include <linux/x25.h>
40 +#include <linux/version.h>
45 rt.sigdigits=sigdigits;
47 /* x25_route_struct.address isn't type struct sockaddr_x25, Why? */
48 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
49 memcpy(&rt.address, &sx25.sx25_addr, sizeof(x25_address));
51 + memcpy(&rt.address, &sx25.sx25_addr, sizeof(struct x25_address));
55 if (!strcmp(*args,"device") || !strcmp(*args,"dev")) {