update to new format for cpp define SunOS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6480 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -395,7 +395,7 @@ int getpty(int *ptynum)
|
||||
int p;
|
||||
char *cp, *p1, *p2;
|
||||
int i;
|
||||
#if SunOS == 4
|
||||
#if SunOS == 40
|
||||
int dummy;
|
||||
#endif
|
||||
#if 0 /* && defined(HAVE_OPENPTY) */
|
||||
@@ -464,14 +464,14 @@ int getpty(int *ptynum)
|
||||
#endif
|
||||
chown(line, 0, 0);
|
||||
chmod(line, 0600);
|
||||
#if SunOS == 4
|
||||
#if SunOS == 40
|
||||
if (ioctl(p, TIOCGPGRP, &dummy) == 0
|
||||
|| errno != EIO) {
|
||||
chmod(line, 0666);
|
||||
close(p);
|
||||
line[5] = 'p';
|
||||
} else
|
||||
#endif /* SunOS == 4 */
|
||||
#endif /* SunOS == 40 */
|
||||
return(p);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user