--- kdbg/ttywnd.cpp.orig	Tue Jul  2 14:31:36 2002
+++ kdbg/ttywnd.cpp	Tue Jul  2 14:33:00 2002
@@ -32,6 +32,9 @@
 #ifdef HAVE_LIBUTIL_H
 #include <libutil.h>			/* openpty on FreeBSD */
 #endif
+#ifdef __NetBSD__
+#include <util.h>                      /* openpty on NetBSD */
+#endif
 #include <errno.h>
 
 #include "mydebug.h"
