$NetBSD: patch-ab,v 1.2 1999/12/06 02:19:26 sakamoto Exp $

--- ./ncp/mp_serial.c.orig	Wed Nov  3 05:47:06 1999
+++ ./ncp/mp_serial.c	Mon Dec  6 11:04:20 1999
@@ -224,6 +224,6 @@
 {
   struct termios ti;
-  if(ioctl(fd, TCGETS, (caddr_t)&ti) < 0) {
-    perror("TCGETSW");
+  if(tcgetattr(fd, &ti) < 0) {
+    perror("TIOCGETA");
   }
   ti.c_cflag &= ~CRTSCTS;
