Fix various missing includes.diff -r1.9 -r1.10 pkgsrc/comms/modemd/distinfo
(joerg)
@@ -1,24 +1,25 @@ | @@ -1,24 +1,25 @@ | |||
1 | $NetBSD: distinfo,v 1.9 2011/09/25 19:41:11 joerg Exp $ | 1 | $NetBSD: distinfo,v 1.10 2011/11/25 21:34:34 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (modemd-970221.tar.gz) = 104f8e596f711e349203b2da8c4f2ecf40d490c3 | 3 | SHA1 (modemd-970221.tar.gz) = 104f8e596f711e349203b2da8c4f2ecf40d490c3 | |
4 | RMD160 (modemd-970221.tar.gz) = ade5d735e5fd07b91006cf1334a41a43dca7e3d9 | 4 | RMD160 (modemd-970221.tar.gz) = ade5d735e5fd07b91006cf1334a41a43dca7e3d9 | |
5 | Size (modemd-970221.tar.gz) = 56093 bytes | 5 | Size (modemd-970221.tar.gz) = 56093 bytes | |
6 | SHA1 (patch-aa) = 093d70c98c5fa21f3c5fff8dc5092ca0afa365ef | 6 | SHA1 (patch-aa) = 093d70c98c5fa21f3c5fff8dc5092ca0afa365ef | |
7 | SHA1 (patch-ab) = 8d84156457fe4b9b1832bbcb98c2bfed51230ca8 | 7 | SHA1 (patch-ab) = fd0382bd007ea3be2be0983db8e78a865ceb0d20 | |
8 | SHA1 (patch-ac) = 55f4bf4b57e1c42becb816ac4982620c42a5bf1a | 8 | SHA1 (patch-ac) = 55f4bf4b57e1c42becb816ac4982620c42a5bf1a | |
9 | SHA1 (patch-ad) = e8c78c84b9ab58644d8e2e105416d5ef5b59fba4 | 9 | SHA1 (patch-ad) = e8c78c84b9ab58644d8e2e105416d5ef5b59fba4 | |
10 | SHA1 (patch-ae) = 44e38979c686f66a22e3fd3b027cb9129b6266ba | 10 | SHA1 (patch-ae) = 44e38979c686f66a22e3fd3b027cb9129b6266ba | |
11 | SHA1 (patch-af) = c438c7ddaa223ae5bdb5b4fd11c5d6304eec4008 | 11 | SHA1 (patch-af) = c438c7ddaa223ae5bdb5b4fd11c5d6304eec4008 | |
12 | SHA1 (patch-ag) = 8d93d4da055170a19336e127017dfe42501a0538 | 12 | SHA1 (patch-ag) = 8d93d4da055170a19336e127017dfe42501a0538 | |
13 | SHA1 (patch-ah) = 9294419cd64c3b5cc9ebadc3a4c135a0a969262d | 13 | SHA1 (patch-ah) = 9294419cd64c3b5cc9ebadc3a4c135a0a969262d | |
14 | SHA1 (patch-ai) = 8e81c1e522979f616f2f4aafd5dd65400a6330fa | 14 | SHA1 (patch-ai) = 8e81c1e522979f616f2f4aafd5dd65400a6330fa | |
15 | SHA1 (patch-aj) = 2837ce9ac377aa6b4f7a8c96f63ff80fcdee9b17 | 15 | SHA1 (patch-aj) = 2837ce9ac377aa6b4f7a8c96f63ff80fcdee9b17 | |
16 | SHA1 (patch-ak) = 0d60a615020abad77dae56d783667e49112593e5 | 16 | SHA1 (patch-ak) = 0d60a615020abad77dae56d783667e49112593e5 | |
17 | SHA1 (patch-al) = 0c24d9ea8ef1d5bc0dc56de7f2d07a7e39062693 | 17 | SHA1 (patch-al) = 0c24d9ea8ef1d5bc0dc56de7f2d07a7e39062693 | |
18 | SHA1 (patch-am) = d740f41abf89f760431f32ca7ffa25bf1b3bd4e1 | 18 | SHA1 (patch-am) = d740f41abf89f760431f32ca7ffa25bf1b3bd4e1 | |
19 | SHA1 (patch-an) = 3369e7dc8db3f837bc4f71ec72e6f7882462c2a7 | 19 | SHA1 (patch-an) = 3369e7dc8db3f837bc4f71ec72e6f7882462c2a7 | |
20 | SHA1 (patch-ao) = 64271c0955600d1ad9bc7f4c74273a537d33f71c | 20 | SHA1 (patch-ao) = 64271c0955600d1ad9bc7f4c74273a537d33f71c | |
21 | SHA1 (patch-ap) = 653a76fba61b627668d98148825aa4f5b825aefa | 21 | SHA1 (patch-ap) = ed747dc8ef3419bc4431d934aaf4692cadd0ade4 | |
22 | SHA1 (patch-aq) = de93880d260d9fc499e1ee3ee1827f4845853af9 | 22 | SHA1 (patch-aq) = f77b4b16b12ca74e897372f328e850a3d9b52229 | |
23 | SHA1 (patch-ar) = 0fc63025d29a0bd626ec8a51f8c6a461bdbb84a4 | 23 | SHA1 (patch-ar) = 0fc63025d29a0bd626ec8a51f8c6a461bdbb84a4 | |
24 | SHA1 (patch-as) = 108b92c07e43556dd96d8f38c4d0657fd74ca106 | 24 | SHA1 (patch-as) = 5ac081a2200b72321973004803d15dd3b9d387b3 | |
25 | SHA1 (patch-incoming_login.c) = 9ece373aee2ea8caa751752a5390decf390eef12 |
@@ -1,29 +1,85 @@ | @@ -1,29 +1,85 @@ | |||
1 | $NetBSD: patch-ab,v 1.3 2007/10/10 16:53:58 rillig Exp $ | 1 | $NetBSD: patch-ab,v 1.4 2011/11/25 21:34:34 joerg Exp $ | |
2 | 2 | |||
3 | --- common/ttio.c.orig 1997-02-21 23:06:09.000000000 +0000 | 3 | --- common/ttio.c.orig 1997-02-21 23:06:09.000000000 +0000 | |
4 | +++ common/ttio.c 2007-10-10 16:48:38.000000000 +0000 | 4 | +++ common/ttio.c | |
5 | @@ -51,6 +51,7 @@ static char copyright[] = | 5 | @@ -45,12 +45,15 @@ static char copyright[] = | |
6 | #include "osdep.h" | |||
7 | #include "cdefs.h" | |||
8 | #include "global.h" | |||
9 | +#include <ctype.h> | |||
10 | #include <stdio.h> | |||
11 | #include <fcntl.h> | |||
12 | #include <syslog.h> | |||
6 | #include "mcap.h" | 13 | #include "mcap.h" | |
7 | #include "ttio.h" | 14 | #include "ttio.h" | |
8 | #include <pwd.h> | 15 | #include <pwd.h> | |
9 | +#include <stdlib.h> | 16 | +#include <stdlib.h> | |
17 | +#include <util.h> | |||
10 | 18 | |||
11 | static void dectl PROTO ((char *, int, char *, int, char *)); | 19 | static void dectl PROTO ((char *, int, char *, int, char *)); | |
12 | 20 | |||
13 | @@ -73,6 +74,16 @@ int ttsetup (name) | 21 | @@ -73,6 +76,16 @@ int ttsetup (name) | |
14 | { | 22 | { | |
15 | if (chown (nbuf, pw -> pw_uid, pw -> pw_gid) < 0) | 23 | if (chown (nbuf, pw -> pw_uid, pw -> pw_gid) < 0) | |
16 | warn ("Can't set owner on %s: %m", nbuf); | 24 | warn ("Can't set owner on %s: %m", nbuf); | |
17 | +#ifdef __NetBSD__ | 25 | +#ifdef __NetBSD__ | |
18 | + if (chmod (nbuf, 0600) < 0) | 26 | + if (chmod (nbuf, 0600) < 0) | |
19 | + warn ("Can't set mode on %s: %m", nbuf); | 27 | + warn ("Can't set mode on %s: %m", nbuf); | |
20 | + revoke(nbuf); | 28 | + revoke(nbuf); | |
21 | + if (ttyaction(nbuf, "modemd", "root")) | 29 | + if (ttyaction(nbuf, "modemd", "root")) | |
22 | + warn ("Can't ttyaction %s: %m", nbuf); | 30 | + warn ("Can't ttyaction %s: %m", nbuf); | |
23 | + | 31 | + | |
24 | + /* delay open so DTR stays down long enough to be detected */ | 32 | + /* delay open so DTR stays down long enough to be detected */ | |
25 | + usleep(100); | 33 | + usleep(100); | |
26 | +#endif | 34 | +#endif | |
27 | } | 35 | } | |
28 | 36 | |||
29 | /* Open the terminal device. */ | 37 | /* Open the terminal device. */ | |
38 | @@ -131,20 +144,19 @@ int ttsetup (name) | |||
39 | return fd; | |||
40 | } | |||
41 | ||||
42 | -void ttnormal (fd) | |||
43 | +void ttnormal (int fd) | |||
44 | { | |||
45 | NORMAL_TTY (ts); | |||
46 | PUT_TTY_STATE (fd, ts); | |||
47 | } | |||
48 | ||||
49 | -void tthupcl (fd) | |||
50 | +void tthupcl (int fd) | |||
51 | { | |||
52 | HUPCL_TTY (ts); | |||
53 | PUT_TTY_STATE (fd, ts); | |||
54 | } | |||
55 | ||||
56 | -void redirect_std (fd) | |||
57 | - int fd; | |||
58 | +void redirect_std (int fd) | |||
59 | { | |||
60 | int i; | |||
61 | ||||
62 | @@ -203,10 +215,8 @@ static int tteof = 0; | |||
63 | ||||
64 | /* Match the specified string with input from the specified tty. | |||
65 | Return nonzero if input matches, zero if not. */ | |||
66 | -ttmatch (ANSI_DECL (int) tty, ANSI_DECL (int) timeout, VA_DOTDOTDOT) | |||
67 | - KandR (int tty;) | |||
68 | - KandR (int timeout;) | |||
69 | - va_dcl | |||
70 | +int | |||
71 | +ttmatch (int tty, int timeout, ...) | |||
72 | { | |||
73 | TIME entry, now, to; | |||
74 | int cur, curmatch, next; | |||
75 | @@ -316,9 +326,7 @@ ttmatch (ANSI_DECL (int) tty, ANSI_DECL | |||
76 | } | |||
77 | ||||
78 | /* Read a connect speed from standard in... */ | |||
79 | -ttread_connect_speed (tty, timeout) | |||
80 | - int tty; | |||
81 | - int timeout; | |||
82 | +int ttread_connect_speed (int tty, int timeout) | |||
83 | { | |||
84 | TIME entry, now, to; | |||
85 | int status; |
@@ -1,18 +1,23 @@ | @@ -1,18 +1,23 @@ | |||
1 | $NetBSD: patch-ap,v 1.2 2007/10/10 16:53:59 rillig Exp $ | 1 | $NetBSD: patch-ap,v 1.3 2011/11/25 21:34:34 joerg Exp $ | |
2 | 2 | |||
3 | --- outgoing/listen.c.orig 1996-04-30 07:02:48.000000000 +0000 | 3 | --- outgoing/listen.c.orig 1996-04-30 07:02:48.000000000 +0000 | |
4 | +++ outgoing/listen.c 2007-10-10 16:50:47.000000000 +0000 | 4 | +++ outgoing/listen.c | |
5 | @@ -53,10 +53,12 @@ static char copyright[] = | 5 | @@ -49,14 +49,17 @@ static char copyright[] = | |
6 | #include <sys/fcntl.h> | |||
7 | #include <sys/types.h> | |||
8 | #include <sys/socket.h> | |||
9 | +#include <arpa/inet.h> | |||
10 | #include <netinet/in.h> | |||
6 | #include <syslog.h> | 11 | #include <syslog.h> | |
7 | #include <unistd.h> | 12 | #include <unistd.h> | |
8 | #include <sys/time.h> | 13 | #include <sys/time.h> | |
9 | -#include <sys/errno.h> | 14 | -#include <sys/errno.h> | |
10 | +#include <errno.h> | 15 | +#include <errno.h> | |
11 | #include <netdb.h> | 16 | #include <netdb.h> | |
12 | #include <sys/stat.h> | 17 | #include <sys/stat.h> | |
13 | #include <sys/resource.h> | 18 | #include <sys/resource.h> | |
14 | +#include <stdio.h> | 19 | +#include <stdio.h> | |
15 | +#include <stdlib.h> | 20 | +#include <stdlib.h> | |
16 | 21 | |||
17 | void listener (port, addr, forkp) | 22 | void listener (port, addr, forkp) | |
18 | int port; | 23 | int port; |
@@ -1,17 +1,22 @@ | @@ -1,17 +1,22 @@ | |||
1 | $NetBSD: patch-aq,v 1.2 2007/10/10 16:53:59 rillig Exp $ | 1 | $NetBSD: patch-aq,v 1.3 2011/11/25 21:34:34 joerg Exp $ | |
2 | 2 | |||
3 | --- incoming/connect.c.orig 1996-04-30 07:02:43.000000000 +0000 | 3 | --- incoming/connect.c.orig 1996-04-30 07:02:43.000000000 +0000 | |
4 | +++ incoming/connect.c 2007-10-10 16:49:07.000000000 +0000 | 4 | +++ incoming/connect.c | |
5 | @@ -53,10 +53,11 @@ static char copyright[] = | 5 | @@ -49,14 +49,16 @@ static char copyright[] = | |
6 | #include <sys/fcntl.h> | |||
7 | #include <sys/types.h> | |||
8 | #include <sys/socket.h> | |||
9 | +#include <arpa/inet.h> | |||
10 | #include <netinet/in.h> | |||
6 | #include <syslog.h> | 11 | #include <syslog.h> | |
7 | #include <unistd.h> | 12 | #include <unistd.h> | |
8 | #include <sys/time.h> | 13 | #include <sys/time.h> | |
9 | -#include <sys/errno.h> | 14 | -#include <sys/errno.h> | |
10 | +#include <errno.h> | 15 | +#include <errno.h> | |
11 | #include <netdb.h> | 16 | #include <netdb.h> | |
12 | #include <sys/stat.h> | 17 | #include <sys/stat.h> | |
13 | #include <sys/resource.h> | 18 | #include <sys/resource.h> | |
14 | +#include <stdlib.h> | 19 | +#include <stdlib.h> | |
15 | 20 | |||
16 | static void pump PROTO ((int, int)); | 21 | static void pump PROTO ((int, int)); | |
17 | 22 |
@@ -1,13 +1,30 @@ | @@ -1,13 +1,30 @@ | |||
1 | $NetBSD: patch-as,v 1.1 2007/10/10 16:53:59 rillig Exp $ | 1 | $NetBSD: patch-as,v 1.2 2011/11/25 21:34:34 joerg Exp $ | |
2 | 2 | |||
3 | --- outgoing/mpoold.c.orig 1996-04-30 07:02:48.000000000 +0000 | 3 | --- outgoing/mpoold.c.orig 1996-04-30 07:02:48.000000000 +0000 | |
4 | +++ outgoing/mpoold.c 2007-10-10 16:50:14.000000000 +0000 | 4 | +++ outgoing/mpoold.c | |
5 | @@ -52,6 +52,8 @@ static char copyright[] = | 5 | @@ -50,11 +50,16 @@ static char copyright[] = | |
6 | #include <syslog.h> | |||
7 | #include <pwd.h> | |||
6 | #include <netdb.h> | 8 | #include <netdb.h> | |
9 | +#include <arpa/inet.h> | |||
7 | #include <netinet/in.h> | 10 | #include <netinet/in.h> | |
8 | #include <sys/socket.h> | 11 | #include <sys/socket.h> | |
9 | +#include <stdio.h> | 12 | +#include <stdio.h> | |
10 | +#include <stdlib.h> | 13 | +#include <stdlib.h> | |
11 | 14 | |||
12 | static void usage PROTO ((void)); | 15 | static void usage PROTO ((void)); | |
13 | 16 | |||
17 | +void telnet(char *, int, int); | |||
18 | + | |||
19 | char **Argv; | |||
20 | ||||
21 | int main (argc, argv, envp) | |||
22 | @@ -220,7 +225,7 @@ int modemConnect(lastmodem) | |||
23 | ||||
24 | /* Clean up loose ends before exiting... */ | |||
25 | ||||
26 | -void cleanup () | |||
27 | +void cleanup (void) | |||
28 | { | |||
29 | ttunlock (); | |||
30 | } |
$NetBSD: patch-incoming_login.c,v 1.1 2011/11/25 21:34:34 joerg Exp $
--- incoming/login.c.orig 2011-11-25 20:00:14.000000000 +0000
+++ incoming/login.c
@@ -47,6 +47,7 @@ static char copyright[] =
#include <stdio.h>
#include <fcntl.h>
#include <syslog.h>
+#include <stdlib.h>
#include "mcap.h"
#include "ttio.h"