aboutsummaryrefslogtreecommitdiffstats
path: root/main/iputils/net-misc_iputils_files_iputils-20121221-add-bits_types_h.patch
blob: 9ea341895d1da943c676ad58ec11a1da9328021d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
diff -Naur iputils-s20121221.orig/clockdiff.c iputils-s20121221/clockdiff.c
--- iputils-s20121221.orig/clockdiff.c	2014-01-24 15:32:49.111934548 +0000
+++ iputils-s20121221/clockdiff.c	2014-01-24 15:32:14.438932610 +0000
@@ -23,6 +23,8 @@
 #include <sys/capability.h>
 #endif
 
+#include "types.h"
+
 void usage(void) __attribute__((noreturn));
 
 #define MAX_HOSTNAMELEN	NI_MAXHOST
diff -Naur iputils-s20121221.orig/ping.c iputils-s20121221/ping.c
--- iputils-s20121221.orig/ping.c	2014-01-24 15:32:49.111934548 +0000
+++ iputils-s20121221/ping.c	2014-01-24 15:32:14.459932611 +0000
@@ -59,6 +59,7 @@
  */
 
 #include "ping_common.h"
+#include "types.h"
 
 #include <netinet/ip.h>
 #include <netinet/ip_icmp.h>
diff -Naur iputils-s20121221.orig/ping6.c iputils-s20121221/ping6.c
--- iputils-s20121221.orig/ping6.c	2014-01-24 15:32:49.112934549 +0000
+++ iputils-s20121221/ping6.c	2014-01-24 15:32:14.439932610 +0000
@@ -67,6 +67,7 @@
  *	This program has to run SUID to ROOT to access the ICMP socket.
  */
 #include "ping_common.h"
+#include "types.h"
 
 #include <linux/filter.h>
 #include <netinet/ip6.h>
diff -Naur iputils-s20121221.orig/ping_common.c iputils-s20121221/ping_common.c
--- iputils-s20121221.orig/ping_common.c	2014-01-24 15:32:49.112934549 +0000
+++ iputils-s20121221/ping_common.c	2014-01-24 15:32:14.439932610 +0000
@@ -1,4 +1,5 @@
 #include "ping_common.h"
+#include "types.h"
 #include <ctype.h>
 #include <sched.h>
 #include <math.h>
diff -Naur iputils-s20121221.orig/ping_common.h iputils-s20121221/ping_common.h
--- iputils-s20121221.orig/ping_common.h	2014-01-24 15:32:14.419932609 +0000
+++ iputils-s20121221/ping_common.h	2014-01-24 15:33:08.206935616 +0000
@@ -35,6 +35,7 @@
 #include <linux/errqueue.h>
 
 #include "SNAPSHOT.h"
+#include "types.h"
 
 #define	DEFDATALEN	(64 - 8)	/* default data length */
 
diff -Naur iputils-s20121221.orig/rdisc.c iputils-s20121221/rdisc.c
--- iputils-s20121221.orig/rdisc.c	2014-01-24 15:32:49.113934549 +0000
+++ iputils-s20121221/rdisc.c	2014-01-24 15:32:14.450932610 +0000
@@ -62,6 +62,7 @@
 #include <syslog.h>
 
 #include "SNAPSHOT.h"
+#include "types.h"
 
 struct interface
 {
diff -Naur iputils-s20121221.orig/traceroute6.c iputils-s20121221/traceroute6.c
--- iputils-s20121221.orig/traceroute6.c	2014-01-24 15:32:49.113934549 +0000
+++ iputils-s20121221/traceroute6.c	2014-01-24 15:32:14.440932610 +0000
@@ -267,6 +267,7 @@
 #include <string.h>
 #include <unistd.h>
 
+#include "types.h"
 #include "SNAPSHOT.h"
 
 #ifndef SOL_IPV6
diff -Naur iputils-s20121221.orig/types.h iputils-s20121221/types.h
--- iputils-s20121221.orig/types.h	1970-01-01 00:00:00.000000000 +0000
+++ iputils-s20121221/types.h	2014-01-24 15:32:14.440932610 +0000
@@ -0,0 +1,14 @@
+/* This is a small version of <bits/types.h> from glibc
+ * to take care of type u_char.
+ *
+ * Anthony G. Basile <blueness@gentoo.org>
+ */
+#ifndef _BITS_TYPES_H
+#define _BITS_TYPES_H   1
+
+typedef unsigned char u_char;
+typedef unsigned short int u_short;
+typedef unsigned int u_int;
+typedef unsigned long int u_long;
+
+#endif /* mini <bits/types.h> */