58 lines
1.3 KiB
Text
58 lines
1.3 KiB
Text
$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;
|
|
|