$NetBSD: patch-ab,v 1.3 2001/04/22 17:43:19 skrll Exp $ --- ncp/mp_serial.c.orig Tue Nov 2 20:47:06 1999 +++ ncp/mp_serial.c @@ -223,8 +223,8 @@ void ser_exit(int fd) { struct termios ti; - if(ioctl(fd, TCGETS, (caddr_t)&ti) < 0) { - perror("TCGETSW"); + if(tcgetattr(fd, &ti) < 0) { + perror("TIOCGETA"); } ti.c_cflag &= ~CRTSCTS; if(tcsetattr(fd, TCSANOW, &ti) < 0) {