$NetBSD: patch-aa,v 1.3 2013/07/19 12:58:20 joerg Exp $

--- main.c.orig	2005-05-09 01:14:32.000000000 +0000
+++ main.c
@@ -85,11 +85,17 @@ SOFTWARE.
 
 #include <pwd.h>
 #include <ctype.h>
+#include <termios.h>
 
 #include <data.h>
 #include <error.h>
 #include <menu.h>
 
+#include <utmp.h>
+#if !defined(__DragonFly__)
+#include <utmpx.h>
+#endif
+
 #ifdef AMOEBA
 #include <amoeba.h>
 #include <cmdreg.h>
