SunOS fixes

This commit is contained in:
Andrew Pamment 2018-01-09 18:07:41 +10:00
parent 3306aebb8c
commit f5e27ce4c3
2 changed files with 3 additions and 1 deletions

2
deps/odoors/ODCom.c vendored
View File

@ -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

View File

@ -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");