$NetBSD: patch-aa,v 1.2 2001/04/04 07:59:29 skrll Exp $ --- ncpd/mp_serial.c.orig Mon Jul 5 22:48:56 1999 +++ ncpd/mp_serial.c @@ -182,7 +182,7 @@ ser_exit(int fd) { struct termios ti; - if (ioctl(fd, TCGETS, (caddr_t) & ti) < 0) + if (tcgetattr(fd, &ti) < 0) perror("TCGETSW"); ti.c_cflag &= ~CRTSCTS; if (tcsetattr(fd, TCSANOW, &ti) < 0)