no CBAUD on Mac

This commit is contained in:
Sean C. Rhea
2007-01-06 20:33:16 +00:00
parent c1550aadc6
commit dc7f83444d

View File

@@ -100,8 +100,10 @@ pt_make_async(int fd)
tty.c_cflag &= ~CSIZE; /* clear size bits */
tty.c_cflag |= CS8; /* 8 bits */
tty.c_cflag |= CLOCAL | CREAD; /* ignore modem control lines */
tty.c_cflag &= ~CBAUD; /* clear baud rate */
tty.c_cflag |= B9600; /* set to 9600 baud */
if (cfsetspeed(&tty, B9600) == -1) {
perror("cfsetspeed");
assert(0);
}
tty.c_iflag = IGNBRK; /* ignore BREAK condition on input */
tty.c_lflag = 0;
tty.c_oflag = 0;