aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/pty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/generic/pty.c b/sysdeps/generic/pty.c
index 1644aee..a539a9b 100644
--- a/sysdeps/generic/pty.c
+++ b/sysdeps/generic/pty.c
@@ -47,6 +47,7 @@ static char sccsid[] = "@(#)pty.c 8.1 (Berkeley) 6/4/93";
#include <string.h>
#include <grp.h>
+int
openpty(amaster, aslave, name, termp, winp)
int *amaster, *aslave;
char *name;
@@ -97,12 +98,14 @@ openpty(amaster, aslave, name, termp, winp)
return (-1);
}
+int
forkpty(amaster, name, termp, winp)
int *amaster;
char *name;
struct termios *termp;
struct winsize *winp;
{
+ extern int login_tty();
int master, slave, pid;
if (openpty(&master, &slave, name, termp, winp) == -1)