1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../iputils/compile.patch.dietlibc
5 # Copyright (C) 2016 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 --- ./Makefile.orig 2006-07-07 21:40:12.000000000 +0000
18 +++ ./Makefile 2006-07-07 21:40:24.000000000 +0000
22 #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
26 ifeq ($(LIBC_INCLUDE)/socketbits.h,$(wildcard $(LIBC_INCLUDE)/socketbits.h))
27 --- ./ping.c.orig 2006-07-07 21:56:01.000000000 +0000
28 +++ ./ping.c 2006-07-07 21:56:20.000000000 +0000
30 #include "ping_common.h"
32 #include <netinet/ip.h>
33 -#include <netinet/ip_icmp.h>
37 --- ./ping_common.c.orig 2002-09-20 16:02:32.000000000 +0000
38 +++ ./ping_common.c 2006-07-07 21:58:57.000000000 +0000
40 #include "ping_common.h"
47 --- ./ping_common.h.orig 2006-07-07 21:48:15.000000000 +0000
48 +++ ./ping_common.h 2006-07-07 22:06:28.000000000 +0000
51 #include <sys/signal.h>
52 #include <sys/ioctl.h>
53 +#include <sys/types.h>
54 +#include <linux/icmp.h>
59 #define CLR(bit) (A(bit) &= (~B(bit)))
60 #define TST(bit) (A(bit) & B(bit))
62 +#define __constant_htons(N) htons(N)
67 --- ./tracepath6.c.orig 2006-07-07 22:08:22.000000000 +0000
68 +++ ./tracepath6.c 2006-07-07 22:08:48.000000000 +0000
70 #include <sys/socket.h>
71 #include <netinet/in.h>
73 -#include <linux/in6.h>
74 #include <linux/errqueue.h>
77 --- ./traceroute6.c.orig 2006-07-07 22:09:53.000000000 +0000
78 +++ ./traceroute6.c 2006-07-07 22:10:30.000000000 +0000
80 #include <netinet/udp.h>
82 -#include <linux/ipv6.h>
83 -#include <linux/in6.h>
85 #include <linux/icmpv6.h>
87 --- ./ping6.c.orig 2006-07-07 22:12:25.000000000 +0000
88 +++ ./ping6.c 2006-07-07 22:12:44.000000000 +0000
90 #include "ping_common.h"
92 -#include <linux/in6.h>
93 -#include <linux/ipv6.h>
94 #include <linux/icmpv6.h>
96 #define BIT_CLEAR(nr, addr) do { ((__u32 *)(addr))[(nr) >> 5] &= ~(1U << ((nr) & 31)); } while(0)