aboutsummaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r--term-utils/agetty.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index 46eea0122b..95236ce977 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -55,7 +55,13 @@
#endif
#if defined(__FreeBSD_kernel__)
-#include <pty.h>
+# include <pty.h>
+# ifdef HAVE_UTMPX_H
+# include <utmp.h>
+# endif
+# ifdef HAVE_LIBUTIL_H
+# include <libutil.h>
+# endif
#endif
#ifdef __linux__