Merge ~liushuyu-011/ubuntu/+source/ucspi-tcp:ubuntu/devel into ubuntu/+source/ucspi-tcp:ubuntu/devel
- Git
- lp:~liushuyu-011/ubuntu/+source/ucspi-tcp
- ubuntu/devel
- Merge into ubuntu/devel
Proposed by
Zixing Liu
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | b0dcbc77aaa4fe878001b945677423ec749ebe5b | ||||
Proposed branch: | ~liushuyu-011/ubuntu/+source/ucspi-tcp:ubuntu/devel | ||||
Merge into: | ubuntu/+source/ucspi-tcp:ubuntu/devel | ||||
Diff against target: |
479 lines (+375/-22) 4 files modified
debian/changelog (+8/-0) debian/ipv6-support.patch (+10/-22) debian/patches/0006-implicit-declarations.patch (+356/-0) debian/patches/series (+1/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek (community) | Approve | ||
Review via email: mp+464230@code.launchpad.net |
Commit message
Description of the change
This MP fixes an FTBFS issue on armhf where a lot of headers and prototype definitions are missing.
To post a comment you must log in.
Revision history for this message
Zixing Liu (liushuyu-011) wrote : | # |
Revision history for this message
Zixing Liu (liushuyu-011) : | # |
Revision history for this message
Steve Langasek (vorlon) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | diff --git a/debian/changelog b/debian/changelog | |||
2 | index f488aa0..62a8b7b 100644 | |||
3 | --- a/debian/changelog | |||
4 | +++ b/debian/changelog | |||
5 | @@ -1,3 +1,11 @@ | |||
6 | 1 | ucspi-tcp (1:0.88-8ubuntu1) noble; urgency=medium | ||
7 | 2 | |||
8 | 3 | * debian/patches/0006-implicit-declarations.patch: Add missing | ||
9 | 4 | includes and prototypes. Closes LP: #2061188. | ||
10 | 5 | * debian/ipv6-support.patch: Refresh deferred patch. | ||
11 | 6 | |||
12 | 7 | -- Zixing Liu <zixing.liu@canonical.com> Fri, 12 Apr 2024 14:33:32 -0600 | ||
13 | 8 | |||
14 | 1 | ucspi-tcp (1:0.88-8build1) noble; urgency=medium | 9 | ucspi-tcp (1:0.88-8build1) noble; urgency=medium |
15 | 2 | 10 | ||
16 | 3 | * No-change rebuild for CVE-2024-3094 | 11 | * No-change rebuild for CVE-2024-3094 |
17 | diff --git a/debian/ipv6-support.patch b/debian/ipv6-support.patch | |||
18 | index 81e50c2..0d6350b 100644 | |||
19 | --- a/debian/ipv6-support.patch | |||
20 | +++ b/debian/ipv6-support.patch | |||
21 | @@ -741,7 +741,7 @@ diff --git a/dns.h b/dns.h | |||
22 | 741 | index 0948b1a..f06c5a8 100644 | 741 | index 0948b1a..f06c5a8 100644 |
23 | 742 | --- a/dns.h | 742 | --- a/dns.h |
24 | 743 | +++ b/dns.h | 743 | +++ b/dns.h |
26 | 744 | @@ -34,51 +34,60 @@ struct dns_transmit { | 744 | @@ -34,51 +34,61 @@ struct dns_transmit { |
27 | 745 | unsigned int curserver; | 745 | unsigned int curserver; |
28 | 746 | struct taia deadline; | 746 | struct taia deadline; |
29 | 747 | unsigned int pos; | 747 | unsigned int pos; |
30 | @@ -812,6 +812,7 @@ index 0948b1a..f06c5a8 100644 | |||
31 | 812 | -extern int dns_mx_packet(stralloc *,char *,unsigned int); | 812 | -extern int dns_mx_packet(stralloc *,char *,unsigned int); |
32 | 813 | -extern int dns_mx(stralloc *,stralloc *); | 813 | -extern int dns_mx(stralloc *,stralloc *); |
33 | 814 | +extern int dns_name4(stralloc *,const char *); | 814 | +extern int dns_name4(stralloc *,const char *); |
34 | 815 | +extern int dns_name6(stralloc *,char *); | ||
35 | 815 | +extern int dns_txt_packet(stralloc *,const char *,unsigned int); | 816 | +extern int dns_txt_packet(stralloc *,const char *,unsigned int); |
36 | 816 | +extern int dns_txt(stralloc *,const stralloc *); | 817 | +extern int dns_txt(stralloc *,const stralloc *); |
37 | 817 | +extern int dns_mx_packet(stralloc *,const char *,unsigned int); | 818 | +extern int dns_mx_packet(stralloc *,const char *,unsigned int); |
38 | @@ -1330,11 +1331,6 @@ diff --git a/dns_random.c b/dns_random.c | |||
39 | 1330 | index b9892b4..2158ed4 100644 | 1331 | index b9892b4..2158ed4 100644 |
40 | 1331 | --- a/dns_random.c | 1332 | --- a/dns_random.c |
41 | 1332 | +++ b/dns_random.c | 1333 | +++ b/dns_random.c |
42 | 1333 | @@ -1,3 +1,4 @@ | ||
43 | 1334 | +#include <unistd.h> | ||
44 | 1335 | #include "dns.h" | ||
45 | 1336 | #include "taia.h" | ||
46 | 1337 | #include "uint32.h" | ||
47 | 1338 | @@ -29,7 +30,7 @@ static void surf(void) | 1334 | @@ -29,7 +30,7 @@ static void surf(void) |
48 | 1339 | } | 1335 | } |
49 | 1340 | } | 1336 | } |
50 | @@ -1433,8 +1429,8 @@ diff --git a/dns_rcrw.c b/dns_rcrw.c | |||
51 | 1433 | index 6f215ac..b0c8e6d 100644 | 1429 | index 6f215ac..b0c8e6d 100644 |
52 | 1434 | --- a/dns_rcrw.c | 1430 | --- a/dns_rcrw.c |
53 | 1435 | +++ b/dns_rcrw.c | 1431 | +++ b/dns_rcrw.c |
56 | 1436 | @@ -1,16 +1,17 @@ | 1432 | @@ -1,16 +1,16 @@ |
57 | 1437 | +#include <unistd.h> | 1433 | #include <unistd.h> |
58 | 1438 | #include "taia.h" | 1434 | #include "taia.h" |
59 | 1439 | -#include "env.h" | 1435 | -#include "env.h" |
60 | 1440 | #include "byte.h" | 1436 | #include "byte.h" |
61 | @@ -1511,17 +1507,7 @@ diff --git a/dns_transmit.c b/dns_transmit.c | |||
62 | 1511 | index df12826..9511511 100644 | 1507 | index df12826..9511511 100644 |
63 | 1512 | --- a/dns_transmit.c | 1508 | --- a/dns_transmit.c |
64 | 1513 | +++ b/dns_transmit.c | 1509 | +++ b/dns_transmit.c |
76 | 1514 | @@ -1,12 +1,15 @@ | 1510 | @@ -7,7 +7,8 @@ |
66 | 1515 | +#include <sys/types.h> | ||
67 | 1516 | +#include <sys/socket.h> | ||
68 | 1517 | +#include <unistd.h> | ||
69 | 1518 | +#include <stdlib.h> | ||
70 | 1519 | #include "socket.h" | ||
71 | 1520 | -#include "alloc.h" | ||
72 | 1521 | -#include "error.h" | ||
73 | 1522 | +#include <errno.h> | ||
74 | 1523 | #include "byte.h" | ||
75 | 1524 | -#include "readwrite.h" | ||
77 | 1525 | #include "uint16.h" | 1511 | #include "uint16.h" |
78 | 1526 | #include "dns.h" | 1512 | #include "dns.h" |
79 | 1527 | +#include "ip6.h" | 1513 | +#include "ip6.h" |
80 | @@ -1985,7 +1971,7 @@ index 0000000..88ff120 | |||
81 | 1985 | +#include "byte.h" | 1971 | +#include "byte.h" |
82 | 1986 | + | 1972 | + |
83 | 1987 | +extern unsigned int scan_ip6(const char *src,char *ip); | 1973 | +extern unsigned int scan_ip6(const char *src,char *ip); |
85 | 1988 | +extern unsigned int fmt_ip6(char *dest,const char *ip); | 1974 | +extern unsigned int ip6_fmt(char *dest,char *ip); |
86 | 1989 | + | 1975 | + |
87 | 1990 | +extern unsigned int scan_ip6_flat(const char *src,char *); | 1976 | +extern unsigned int scan_ip6_flat(const char *src,char *); |
88 | 1991 | +extern unsigned int fmt_ip6_flat(char *dest,const char *); | 1977 | +extern unsigned int fmt_ip6_flat(char *dest,const char *); |
89 | @@ -2357,7 +2343,8 @@ new file mode 100644 | |||
90 | 2357 | index 0000000..cf3b7c1 | 2343 | index 0000000..cf3b7c1 |
91 | 2358 | --- /dev/null | 2344 | --- /dev/null |
92 | 2359 | +++ b/remoteinfo6.c | 2345 | +++ b/remoteinfo6.c |
94 | 2360 | @@ -0,0 +1,98 @@ | 2346 | @@ -0,0 +1,99 @@ |
95 | 2347 | +#include <unistd.h> | ||
96 | 2361 | +#include "fmt.h" | 2348 | +#include "fmt.h" |
97 | 2362 | +#include "buffer.h" | 2349 | +#include "buffer.h" |
98 | 2363 | +#include "socket.h" | 2350 | +#include "socket.h" |
99 | @@ -3065,7 +3052,8 @@ new file mode 100644 | |||
100 | 3065 | index 0000000..74099e2 | 3052 | index 0000000..74099e2 |
101 | 3066 | --- /dev/null | 3053 | --- /dev/null |
102 | 3067 | +++ b/socket_tcp6.c | 3054 | +++ b/socket_tcp6.c |
104 | 3068 | @@ -0,0 +1,44 @@ | 3055 | @@ -0,0 +1,45 @@ |
105 | 3056 | +#include <unistd.h> | ||
106 | 3069 | +#include <sys/types.h> | 3057 | +#include <sys/types.h> |
107 | 3070 | +#include <sys/param.h> | 3058 | +#include <sys/param.h> |
108 | 3071 | +#include <sys/socket.h> | 3059 | +#include <sys/socket.h> |
109 | diff --git a/debian/patches/0006-implicit-declarations.patch b/debian/patches/0006-implicit-declarations.patch | |||
110 | 3072 | new file mode 100644 | 3060 | new file mode 100644 |
111 | index 0000000..412d9cc | |||
112 | --- /dev/null | |||
113 | +++ b/debian/patches/0006-implicit-declarations.patch | |||
114 | @@ -0,0 +1,356 @@ | |||
115 | 1 | Description: Add missing includes and prototypes | ||
116 | 2 | Author: Zixing Liu <zixing.liu@canonical.com> | ||
117 | 3 | Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066629 | ||
118 | 4 | Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/ucspi-tcp/+bug/2061188 | ||
119 | 5 | Forwarded: no | ||
120 | 6 | Last-Update: 2024-04-12 | ||
121 | 7 | --- | ||
122 | 8 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | ||
123 | 9 | Index: ucspi-tcp/dns_random.c | ||
124 | 10 | =================================================================== | ||
125 | 11 | --- ucspi-tcp.orig/dns_random.c | ||
126 | 12 | +++ ucspi-tcp/dns_random.c | ||
127 | 13 | @@ -1,3 +1,4 @@ | ||
128 | 14 | +#include <unistd.h> | ||
129 | 15 | #include "dns.h" | ||
130 | 16 | #include "taia.h" | ||
131 | 17 | #include "uint32.h" | ||
132 | 18 | Index: ucspi-tcp/dns_rcrw.c | ||
133 | 19 | =================================================================== | ||
134 | 20 | --- ucspi-tcp.orig/dns_rcrw.c | ||
135 | 21 | +++ ucspi-tcp/dns_rcrw.c | ||
136 | 22 | @@ -1,3 +1,4 @@ | ||
137 | 23 | +#include <unistd.h> | ||
138 | 24 | #include "taia.h" | ||
139 | 25 | #include "env.h" | ||
140 | 26 | #include "byte.h" | ||
141 | 27 | Index: ucspi-tcp/remoteinfo.c | ||
142 | 28 | =================================================================== | ||
143 | 29 | --- ucspi-tcp.orig/remoteinfo.c | ||
144 | 30 | +++ ucspi-tcp/remoteinfo.c | ||
145 | 31 | @@ -1,3 +1,4 @@ | ||
146 | 32 | +#include <unistd.h> | ||
147 | 33 | #include "fmt.h" | ||
148 | 34 | #include "buffer.h" | ||
149 | 35 | #include "socket.h" | ||
150 | 36 | Index: ucspi-tcp/tcpserver.c | ||
151 | 37 | =================================================================== | ||
152 | 38 | --- ucspi-tcp.orig/tcpserver.c | ||
153 | 39 | +++ ucspi-tcp/tcpserver.c | ||
154 | 40 | @@ -1,3 +1,4 @@ | ||
155 | 41 | +#include <unistd.h> | ||
156 | 42 | #include <sys/types.h> | ||
157 | 43 | #include <sys/param.h> | ||
158 | 44 | #include <netdb.h> | ||
159 | 45 | @@ -63,7 +64,8 @@ static stralloc addresses; | ||
160 | 46 | char bspace[16]; | ||
161 | 47 | buffer b; | ||
162 | 48 | |||
163 | 49 | - | ||
164 | 50 | +int socket_ipoptionskill(int s); | ||
165 | 51 | +int socket_tcpnodelay(int s); | ||
166 | 52 | |||
167 | 53 | /* ---------------------------- child */ | ||
168 | 54 | |||
169 | 55 | Index: ucspi-tcp/auto-str.c | ||
170 | 56 | =================================================================== | ||
171 | 57 | --- ucspi-tcp.orig/auto-str.c | ||
172 | 58 | +++ ucspi-tcp/auto-str.c | ||
173 | 59 | @@ -1,7 +1,6 @@ | ||
174 | 60 | #include "buffer.h" | ||
175 | 61 | #include "readwrite.h" | ||
176 | 62 | #include "exit.h" | ||
177 | 63 | - | ||
178 | 64 | char bspace[256]; | ||
179 | 65 | buffer b = BUFFER_INIT(write,1,bspace,sizeof bspace); | ||
180 | 66 | |||
181 | 67 | Index: ucspi-tcp/chkshsgr.c | ||
182 | 68 | =================================================================== | ||
183 | 69 | --- ucspi-tcp.orig/chkshsgr.c | ||
184 | 70 | +++ ucspi-tcp/chkshsgr.c | ||
185 | 71 | @@ -1,3 +1,5 @@ | ||
186 | 72 | +#include <unistd.h> | ||
187 | 73 | +#include <grp.h> | ||
188 | 74 | #include "exit.h" | ||
189 | 75 | |||
190 | 76 | main() | ||
191 | 77 | Index: ucspi-tcp/dns_transmit.c | ||
192 | 78 | =================================================================== | ||
193 | 79 | --- ucspi-tcp.orig/dns_transmit.c | ||
194 | 80 | +++ ucspi-tcp/dns_transmit.c | ||
195 | 81 | @@ -1,8 +1,12 @@ | ||
196 | 82 | +#include <sys/types.h> | ||
197 | 83 | +#include <sys/socket.h> | ||
198 | 84 | +#include <unistd.h> | ||
199 | 85 | +#include <stdlib.h> | ||
200 | 86 | #include "socket.h" | ||
201 | 87 | +#include <errno.h> | ||
202 | 88 | #include "alloc.h" | ||
203 | 89 | #include "error.h" | ||
204 | 90 | #include "byte.h" | ||
205 | 91 | -#include "readwrite.h" | ||
206 | 92 | #include "uint16.h" | ||
207 | 93 | #include "dns.h" | ||
208 | 94 | |||
209 | 95 | Index: ucspi-tcp/fd_copy.c | ||
210 | 96 | =================================================================== | ||
211 | 97 | --- ucspi-tcp.orig/fd_copy.c | ||
212 | 98 | +++ ucspi-tcp/fd_copy.c | ||
213 | 99 | @@ -1,4 +1,5 @@ | ||
214 | 100 | #include <fcntl.h> | ||
215 | 101 | +#include <unistd.h> | ||
216 | 102 | #include "fd.h" | ||
217 | 103 | |||
218 | 104 | int fd_copy(int to,int from) | ||
219 | 105 | Index: ucspi-tcp/fd_move.c | ||
220 | 106 | =================================================================== | ||
221 | 107 | --- ucspi-tcp.orig/fd_move.c | ||
222 | 108 | +++ ucspi-tcp/fd_move.c | ||
223 | 109 | @@ -1,3 +1,4 @@ | ||
224 | 110 | +#include <unistd.h> | ||
225 | 111 | #include "fd.h" | ||
226 | 112 | |||
227 | 113 | int fd_move(int to,int from) | ||
228 | 114 | Index: ucspi-tcp/fixcrio.c | ||
229 | 115 | =================================================================== | ||
230 | 116 | --- ucspi-tcp.orig/fixcrio.c | ||
231 | 117 | +++ ucspi-tcp/fixcrio.c | ||
232 | 118 | @@ -1,3 +1,5 @@ | ||
233 | 119 | +#include <unistd.h> | ||
234 | 120 | +#include "fd.h" | ||
235 | 121 | #include "sig.h" | ||
236 | 122 | #include "buffer.h" | ||
237 | 123 | #include "strerr.h" | ||
238 | 124 | Index: ucspi-tcp/hier.c | ||
239 | 125 | =================================================================== | ||
240 | 126 | --- ucspi-tcp.orig/hier.c | ||
241 | 127 | +++ ucspi-tcp/hier.c | ||
242 | 128 | @@ -1,5 +1,9 @@ | ||
243 | 129 | #include "auto_home.h" | ||
244 | 130 | |||
245 | 131 | +void h(char *home, int uid, int gid, int mode); | ||
246 | 132 | +void d(char *home, char *subdir, int uid, int gid, int mode); | ||
247 | 133 | +void c(char *home, char *subdir, char *file, int uid, int gid, int mode); | ||
248 | 134 | + | ||
249 | 135 | void hier() | ||
250 | 136 | { | ||
251 | 137 | h(auto_home,-1,-1,02755); | ||
252 | 138 | Index: ucspi-tcp/install.c | ||
253 | 139 | =================================================================== | ||
254 | 140 | --- ucspi-tcp.orig/install.c | ||
255 | 141 | +++ ucspi-tcp/install.c | ||
256 | 142 | @@ -1,3 +1,5 @@ | ||
257 | 143 | +#include <sys/stat.h> | ||
258 | 144 | +#include <unistd.h> | ||
259 | 145 | #include "buffer.h" | ||
260 | 146 | #include "strerr.h" | ||
261 | 147 | #include "error.h" | ||
262 | 148 | Index: ucspi-tcp/instcheck.c | ||
263 | 149 | =================================================================== | ||
264 | 150 | --- ucspi-tcp.orig/instcheck.c | ||
265 | 151 | +++ ucspi-tcp/instcheck.c | ||
266 | 152 | @@ -1,5 +1,6 @@ | ||
267 | 153 | #include <sys/types.h> | ||
268 | 154 | #include <sys/stat.h> | ||
269 | 155 | +#include <unistd.h> | ||
270 | 156 | #include "strerr.h" | ||
271 | 157 | #include "error.h" | ||
272 | 158 | #include "readwrite.h" | ||
273 | 159 | Index: ucspi-tcp/mconnect-io.c | ||
274 | 160 | =================================================================== | ||
275 | 161 | --- ucspi-tcp.orig/mconnect-io.c | ||
276 | 162 | +++ ucspi-tcp/mconnect-io.c | ||
277 | 163 | @@ -1,3 +1,4 @@ | ||
278 | 164 | +#include <signal.h> | ||
279 | 165 | #include "sig.h" | ||
280 | 166 | #include "wait.h" | ||
281 | 167 | #include "fork.h" | ||
282 | 168 | Index: ucspi-tcp/pathexec_run.c | ||
283 | 169 | =================================================================== | ||
284 | 170 | --- ucspi-tcp.orig/pathexec_run.c | ||
285 | 171 | +++ ucspi-tcp/pathexec_run.c | ||
286 | 172 | @@ -1,3 +1,4 @@ | ||
287 | 173 | +#include <unistd.h> | ||
288 | 174 | #include "error.h" | ||
289 | 175 | #include "stralloc.h" | ||
290 | 176 | #include "str.h" | ||
291 | 177 | Index: ucspi-tcp/prot.c | ||
292 | 178 | =================================================================== | ||
293 | 179 | --- ucspi-tcp.orig/prot.c | ||
294 | 180 | +++ ucspi-tcp/prot.c | ||
295 | 181 | @@ -1,3 +1,5 @@ | ||
296 | 182 | +#include <unistd.h> | ||
297 | 183 | +#include <grp.h> | ||
298 | 184 | #include "hasshsgr.h" | ||
299 | 185 | #include "prot.h" | ||
300 | 186 | |||
301 | 187 | Index: ucspi-tcp/rblsmtpd.c | ||
302 | 188 | =================================================================== | ||
303 | 189 | --- ucspi-tcp.orig/rblsmtpd.c | ||
304 | 190 | +++ ucspi-tcp/rblsmtpd.c | ||
305 | 191 | @@ -1,3 +1,4 @@ | ||
306 | 192 | +#include <unistd.h> | ||
307 | 193 | #include "byte.h" | ||
308 | 194 | #include "str.h" | ||
309 | 195 | #include "scan.h" | ||
310 | 196 | Index: ucspi-tcp/readclose.c | ||
311 | 197 | =================================================================== | ||
312 | 198 | --- ucspi-tcp.orig/readclose.c | ||
313 | 199 | +++ ucspi-tcp/readclose.c | ||
314 | 200 | @@ -1,3 +1,4 @@ | ||
315 | 201 | +#include <unistd.h> | ||
316 | 202 | #include "readwrite.h" | ||
317 | 203 | #include "error.h" | ||
318 | 204 | #include "readclose.h" | ||
319 | 205 | Index: ucspi-tcp/recordio.c | ||
320 | 206 | =================================================================== | ||
321 | 207 | --- ucspi-tcp.orig/recordio.c | ||
322 | 208 | +++ ucspi-tcp/recordio.c | ||
323 | 209 | @@ -1,3 +1,5 @@ | ||
324 | 210 | +#include <unistd.h> | ||
325 | 211 | +#include "fd.h" | ||
326 | 212 | #include "sig.h" | ||
327 | 213 | #include "buffer.h" | ||
328 | 214 | #include "strerr.h" | ||
329 | 215 | Index: ucspi-tcp/seek_set.c | ||
330 | 216 | =================================================================== | ||
331 | 217 | --- ucspi-tcp.orig/seek_set.c | ||
332 | 218 | +++ ucspi-tcp/seek_set.c | ||
333 | 219 | @@ -1,3 +1,4 @@ | ||
334 | 220 | +#include <unistd.h> | ||
335 | 221 | #include <sys/types.h> | ||
336 | 222 | #include "seek.h" | ||
337 | 223 | |||
338 | 224 | Index: ucspi-tcp/sig_pause.c | ||
339 | 225 | =================================================================== | ||
340 | 226 | --- ucspi-tcp.orig/sig_pause.c | ||
341 | 227 | +++ ucspi-tcp/sig_pause.c | ||
342 | 228 | @@ -1,3 +1,4 @@ | ||
343 | 229 | +#define __USE_XOPEN_EXTENDED 1 | ||
344 | 230 | #include <signal.h> | ||
345 | 231 | #include "sig.h" | ||
346 | 232 | #include "hassgprm.h" | ||
347 | 233 | Index: ucspi-tcp/socket_tcp.c | ||
348 | 234 | =================================================================== | ||
349 | 235 | --- ucspi-tcp.orig/socket_tcp.c | ||
350 | 236 | +++ ucspi-tcp/socket_tcp.c | ||
351 | 237 | @@ -1,3 +1,4 @@ | ||
352 | 238 | +#include <unistd.h> | ||
353 | 239 | #include <sys/types.h> | ||
354 | 240 | #include <sys/param.h> | ||
355 | 241 | #include <sys/socket.h> | ||
356 | 242 | Index: ucspi-tcp/socket_udp.c | ||
357 | 243 | =================================================================== | ||
358 | 244 | --- ucspi-tcp.orig/socket_udp.c | ||
359 | 245 | +++ ucspi-tcp/socket_udp.c | ||
360 | 246 | @@ -1,3 +1,4 @@ | ||
361 | 247 | +#include <unistd.h> | ||
362 | 248 | #include <sys/types.h> | ||
363 | 249 | #include <sys/param.h> | ||
364 | 250 | #include <sys/socket.h> | ||
365 | 251 | Index: ucspi-tcp/tcpclient.c | ||
366 | 252 | =================================================================== | ||
367 | 253 | --- ucspi-tcp.orig/tcpclient.c | ||
368 | 254 | +++ ucspi-tcp/tcpclient.c | ||
369 | 255 | @@ -1,6 +1,7 @@ | ||
370 | 256 | #include <sys/types.h> | ||
371 | 257 | #include <sys/param.h> | ||
372 | 258 | #include <netdb.h> | ||
373 | 259 | +#include <unistd.h> | ||
374 | 260 | #include "sig.h" | ||
375 | 261 | #include "exit.h" | ||
376 | 262 | #include "sgetopt.h" | ||
377 | 263 | @@ -24,6 +25,7 @@ | ||
378 | 264 | #define FATAL "tcpclient: fatal: " | ||
379 | 265 | #define CONNECT "tcpclient: unable to connect to " | ||
380 | 266 | |||
381 | 267 | +int socket_tcpnodelay(int s); | ||
382 | 268 | void nomem(void) | ||
383 | 269 | { | ||
384 | 270 | strerr_die2x(111,FATAL,"out of memory"); | ||
385 | 271 | Index: ucspi-tcp/tcprules.c | ||
386 | 272 | =================================================================== | ||
387 | 273 | --- ucspi-tcp.orig/tcprules.c | ||
388 | 274 | +++ ucspi-tcp/tcprules.c | ||
389 | 275 | @@ -1,3 +1,7 @@ | ||
390 | 276 | +#include <stdio.h> | ||
391 | 277 | +#include <unistd.h> | ||
392 | 278 | +#include "scan.h" | ||
393 | 279 | +#include "open.h" | ||
394 | 280 | #include "strerr.h" | ||
395 | 281 | #include "stralloc.h" | ||
396 | 282 | #include "getln.h" | ||
397 | 283 | Index: ucspi-tcp/tcprulescheck.c | ||
398 | 284 | =================================================================== | ||
399 | 285 | --- ucspi-tcp.orig/tcprulescheck.c | ||
400 | 286 | +++ ucspi-tcp/tcprulescheck.c | ||
401 | 287 | @@ -1,3 +1,5 @@ | ||
402 | 288 | +#include <unistd.h> | ||
403 | 289 | +#include "open.h" | ||
404 | 290 | #include "byte.h" | ||
405 | 291 | #include "buffer.h" | ||
406 | 292 | #include "strerr.h" | ||
407 | 293 | Index: ucspi-tcp/trypoll.c | ||
408 | 294 | =================================================================== | ||
409 | 295 | --- ucspi-tcp.orig/trypoll.c | ||
410 | 296 | +++ ucspi-tcp/trypoll.c | ||
411 | 297 | @@ -1,3 +1,4 @@ | ||
412 | 298 | +#include <unistd.h> | ||
413 | 299 | #include <sys/types.h> | ||
414 | 300 | #include <fcntl.h> | ||
415 | 301 | #include <poll.h> | ||
416 | 302 | Index: ucspi-tcp/tryshsgr.c | ||
417 | 303 | =================================================================== | ||
418 | 304 | --- ucspi-tcp.orig/tryshsgr.c | ||
419 | 305 | +++ ucspi-tcp/tryshsgr.c | ||
420 | 306 | @@ -1,3 +1,5 @@ | ||
421 | 307 | +#include <unistd.h> | ||
422 | 308 | +#include <grp.h> | ||
423 | 309 | main() | ||
424 | 310 | { | ||
425 | 311 | short x[4]; | ||
426 | 312 | Index: ucspi-tcp/tryulong32.c | ||
427 | 313 | =================================================================== | ||
428 | 314 | --- ucspi-tcp.orig/tryulong32.c | ||
429 | 315 | +++ ucspi-tcp/tryulong32.c | ||
430 | 316 | @@ -1,4 +1,6 @@ | ||
431 | 317 | -main() | ||
432 | 318 | +#include <unistd.h> | ||
433 | 319 | + | ||
434 | 320 | +int main() | ||
435 | 321 | { | ||
436 | 322 | unsigned long u; | ||
437 | 323 | u = 1; | ||
438 | 324 | Index: ucspi-tcp/tryulong64.c | ||
439 | 325 | =================================================================== | ||
440 | 326 | --- ucspi-tcp.orig/tryulong64.c | ||
441 | 327 | +++ ucspi-tcp/tryulong64.c | ||
442 | 328 | @@ -1,4 +1,5 @@ | ||
443 | 329 | -main() | ||
444 | 330 | +#include <unistd.h> | ||
445 | 331 | +int main() | ||
446 | 332 | { | ||
447 | 333 | unsigned long u; | ||
448 | 334 | u = 1; | ||
449 | 335 | Index: ucspi-tcp/tryvfork.c | ||
450 | 336 | =================================================================== | ||
451 | 337 | --- ucspi-tcp.orig/tryvfork.c | ||
452 | 338 | +++ ucspi-tcp/tryvfork.c | ||
453 | 339 | @@ -1,3 +1,4 @@ | ||
454 | 340 | +#include <unistd.h> | ||
455 | 341 | main() | ||
456 | 342 | { | ||
457 | 343 | vfork(); | ||
458 | 344 | Index: ucspi-tcp/readwrite.h | ||
459 | 345 | =================================================================== | ||
460 | 346 | --- ucspi-tcp.orig/readwrite.h | ||
461 | 347 | +++ ucspi-tcp/readwrite.h | ||
462 | 348 | @@ -1,7 +1,6 @@ | ||
463 | 349 | #ifndef READWRITE_H | ||
464 | 350 | #define READWRITE_H | ||
465 | 351 | |||
466 | 352 | -extern int read(); | ||
467 | 353 | -extern int write(); | ||
468 | 354 | +#include <unistd.h> | ||
469 | 355 | |||
470 | 356 | #endif | ||
471 | diff --git a/debian/patches/series b/debian/patches/series | |||
472 | index 84c9cf3..d010a64 100644 | |||
473 | --- a/debian/patches/series | |||
474 | +++ b/debian/patches/series | |||
475 | @@ -3,3 +3,4 @@ | |||
476 | 3 | 0003-Makefile-target-choose-do-not-depend-on-conf-home.diff | 3 | 0003-Makefile-target-choose-do-not-depend-on-conf-home.diff |
477 | 4 | 0004-respect-DESTDIR-variable.patch | 4 | 0004-respect-DESTDIR-variable.patch |
478 | 5 | 0005-build-verbose.patch | 5 | 0005-build-verbose.patch |
479 | 6 | 0006-implicit-declarations.patch |
PPA build: https:/ /launchpad. net/~liushuyu- 011/+archive/ ubuntu/ misc/+sourcepub /15929386/ +listing- archive- extra