#include "TermPrimOSDepI.h"
#include "TermPrimDebug.h"
#include "TermHeader.h"
-#include <stropts.h>
#if !defined(linux)
+#include <stropts.h>
#include <sys/conf.h>
#include <sys/stream.h>
#endif
#include <sys/termios.h>
+
+#if defined(linux)
+#undef USE_STREAMS_BUFMOD
+#endif
+
#ifdef USE_STREAMS_BUFMOD
#include <sys/bufmod.h>
#endif /* USE_STREAMS_BUFMOD */
+
#include <errno.h>
/* last ditch fallback. If the clone device is other than /dev/ptmx,
* they don't seem to stick after the file is closed on
* SVR4.2. Not sure where else this applies.
*/
+#if !defined(linux)
if (ioctl(ptyFd, I_PUSH, "ptem") == -1) {
(void) perror("Error pushing ptem");
/* exit the subprocess */
}
#endif /* USE_STREAMS_TTCOMPAT */
+#endif /* linux */
+
/* success... */
return(0);
}