Fix for Irix 4

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@680 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1996-08-24 23:13:03 +00:00
parent ffc8a5ca79
commit 6b58bfe30b

View File

@@ -419,6 +419,15 @@ int getpty(int *ptynum)
}
return -1;
#else
#if IRIX == 4
int master, slave;
char *p;
p = _getpty(&master, O_RDWR, 0600, 1);
if(p == NULL)
return -1;
strcpy(line, p);
return master;
#else
int p;
char *cp, *p1, *p2;
@@ -542,6 +551,7 @@ int getpty(int *ptynum)
#endif /* OPENPTY */
return(-1);
#endif
#endif
}
#ifdef LINEMODE