--- kdbg/ttywnd.cpp.orig	Sat Nov 11 06:12:29 2000
+++ kdbg/ttywnd.cpp	Tue Dec 26 08:28:38 2000
@@ -29,6 +29,9 @@
 #ifdef HAVE_PTY_H
 #include <pty.h>			/* openpty */
 #endif
+#ifdef __FreeBSD__
+#include <libutil.h>
+#endif
 #include <errno.h>
 
 #include "mydebug.h"
