Applied patch from jj@sunsite.ms.mff.cuni.cz: don't try some ioctls

when on linux.
This commit is contained in:
Pavel Machek 1999-03-18 16:25:17 +00:00
parent 79c0c8442f
commit 79846ffaab

View File

@ -1119,7 +1119,7 @@ static int pty_open_slave (const char *pty_name)
return -1;
}
#if !defined(__osf__)
#if !defined(__osf__) && !defined(linux) && !defined(__linux__)
#if defined (I_FIND) && defined (I_PUSH)
if (!ioctl (pty_slave, I_FIND, "ptem"))
if (ioctl (pty_slave, I_PUSH, "ptem") == -1)
@ -1147,7 +1147,7 @@ static int pty_open_slave (const char *pty_name)
}
#endif /* sgi || __sgi */
#endif /* I_FIND && I_PUSH */
#endif /* __osf__ */
#endif /* __osf__ || linux || __linux__ */
return pty_slave;
}