summaryrefslogtreecommitdiff
path: root/misc/lile/patches/patch-aa
blob: 5bb02569340ac6184bd5b24b40ffd24bb1b6e10d (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
$NetBSD: patch-aa,v 1.8 2013/08/30 16:54:07 joerg Exp $

--- ile.c.orig	1993-06-09 03:12:33.000000000 +0000
+++ ile.c
@@ -2,6 +2,11 @@
 /* Copyright message is near the bottom of the file */
 
 #include "config.h"
+#include <signal.h>
+#include <ctype.h>
+#include <time.h>
+#include <termios.h>
+#include <unistd.h>
 
 /* #define DEBUG /**/
 
@@ -43,7 +48,7 @@ void setup_action_table();
 #include <stdio.h>
 #include <fcntl.h>
 #include <sgtty.h>
-#include <signal.h>
+#include <stdlib.h>
 #include <string.h>
 #include <strings.h>
 #include <pwd.h>
@@ -51,7 +56,7 @@ void setup_action_table();
 #include <errno.h>
 #include <sys/ioctl.h>
 #include <sys/types.h>
-#include <sys/dir.h>
+#include <dirent.h>
 #include <sys/file.h>
 #include <sys/time.h>
 #include <sys/wait.h>
@@ -60,14 +65,6 @@ void setup_action_table();
 #include <sys/ttold.h>
 */
 
-/* Definitions of system stuff.  */
-extern int errno;
-
-long lseek();
-char *malloc();
-char *realloc();
-time_t time();
-
 #ifndef TRUE
 # define FALSE 0
 # define TRUE  1
@@ -312,7 +309,7 @@ void handle_child() {
   getpty opens a pty, storing file descriptors in pty and tty.
   It trys pairs in order until it finds a pair that is not in use.
 */
-getpty(pty, tty) int *pty; int *tty; {
+static void getpty(pty, tty) int *pty; int *tty; {
     int devindex;
     int letter;