--- kvt/command.c.orig	Tue Dec 30 23:47:02 1997
+++ kvt/command.c	Tue Dec 30 23:47:37 1997
@@ -169,10 +169,12 @@
  */
 static struct termios ttmode;
 #ifndef __FreeBSD__
+#ifndef __NetBSD__
 #ifndef CINTR
 #ifndef _POSIX_VDISABLE
 #define _POSIX_VDISABLE 0
 #endif
+#endif
 
 #undef CTRL
 #define CTRL(c) ((c) - '@')
@@ -404,7 +406,7 @@
       }
 
       /* init of termios structure		*/
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
       ioctl(0,TIOCGETA,(char *)&ttmode);
 #else
 #   ifdef _HPUX_SOURCE
@@ -472,7 +474,7 @@
 
       if(mask == 0x7f)
 	ttmode.c_cflag = B9600 | PARENB | CS7 | CREAD;
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
       ioctl(0,TIOCSETA,(char *)&ttmode);
 #else
 #   ifdef _HPUX_SOURCE