$NetBSD: patch-ab,v 1.1.1.1 1999/05/06 07:39:08 sakamoto Exp $

--- ncp/mp_serial.c.orig	Mon Feb  1 19:14:31 1999
+++ ncp/mp_serial.c	Mon Apr 19 10:51:46 1999
@@ -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) {
