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:
@@ -419,6 +419,15 @@ int getpty(int *ptynum)
|
|||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
#else
|
#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;
|
int p;
|
||||||
char *cp, *p1, *p2;
|
char *cp, *p1, *p2;
|
||||||
@@ -542,6 +551,7 @@ int getpty(int *ptynum)
|
|||||||
#endif /* OPENPTY */
|
#endif /* OPENPTY */
|
||||||
return(-1);
|
return(-1);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LINEMODE
|
#ifdef LINEMODE
|
||||||
|
Reference in New Issue
Block a user