1 $NetBSD: patch-aa,v 1.10 2004/06/16 21:35:00 christos Exp $
3 --- pty.c.orig 2003-09-08 14:26:18.000000000 +0000
8 /* for solaris 2.1, Unixware (SVR4.2) and possibly others */
10 +#ifdef HAVE_SYS_STROPTS_H
11 # include <sys/stropts.h>
14 @@ -313,6 +313,45 @@ char **ttyn;
16 /***************************************************************/
18 +#if defined(__NetBSD__) && !defined(PTY_DONE)
21 +#include <sys/param.h>
33 + if (openpty(&m, &s, TtyName, NULL, NULL) < 0)
38 + strcpy(PtyName, TtyName);
39 + t = strrchr(PtyName, '/');
40 + if ((t == NULL ) || (*++t != 't'))
44 + f = open(PtyName, O_RDWR | O_NOCTTY);
55 +/***************************************************************/
57 #if defined(HAVE_OPENPTY) && !defined(PTY_DONE)