mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 19:52:20 +00:00
dtterm: disable svr4 streams semantics on linux
This commit is contained in:
parent
bdd889c141
commit
62b669a6af
1 changed files with 10 additions and 1 deletions
|
@ -42,15 +42,21 @@ static char rcs_id[] = "$XConsortium: TermPrimGetPty-svr4.c /main/1 1996/04/21 1
|
|||
#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,
|
||||
|
@ -235,6 +241,7 @@ _DtTermPrimSetupPty(char *ptySlave, int ptyFd)
|
|||
* 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 */
|
||||
|
@ -255,6 +262,8 @@ _DtTermPrimSetupPty(char *ptySlave, int ptyFd)
|
|||
}
|
||||
#endif /* USE_STREAMS_TTCOMPAT */
|
||||
|
||||
#endif /* linux */
|
||||
|
||||
/* success... */
|
||||
return(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue