SunOS fixes
This commit is contained in:
parent
3306aebb8c
commit
f5e27ce4c3
2
deps/odoors/ODCom.c
vendored
2
deps/odoors/ODCom.c
vendored
@ -1796,6 +1796,8 @@ no_fossil:
|
||||
tio_raw.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
|
||||
tio_raw.c_cflag &= ~(CSIZE|PARENB);
|
||||
tio_raw.c_cflag |= CS8;
|
||||
tio_raw.c_cc[VMIN] = 1;
|
||||
tio_raw.c_cc[VTIME] = 0;
|
||||
#else
|
||||
cfmakeraw(&tio_raw);
|
||||
#endif
|
||||
|
@ -58,7 +58,7 @@ int forkpty(int *amaster, char *name, void *termp, void *winp) {
|
||||
if (name != NULL) {
|
||||
strcpy(name, pname);
|
||||
}
|
||||
pts = open(name, O_RDWR);
|
||||
pts = open(pname, O_RDWR);
|
||||
ioctl(pts, I_PUSH, "ptem");
|
||||
ioctl(pts, I_PUSH, "ldterm");
|
||||
ioctl(pts, I_PUSH, "ttcompat");
|
||||
|
Reference in New Issue
Block a user