$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 +#include +#include +#include +#include /* #define DEBUG /**/ @@ -43,7 +48,7 @@ void setup_action_table(); #include #include #include -#include +#include #include #include #include @@ -51,7 +56,7 @@ void setup_action_table(); #include #include #include -#include +#include #include #include #include @@ -60,14 +65,6 @@ void setup_action_table(); #include */ -/* 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;