diff options
author | Ruediger Meier | 2016-12-01 09:57:51 +0100 |
---|---|---|
committer | Karel Zak | 2016-12-07 12:35:24 +0100 |
commit | 77835be2737305c395b0aa18728464b075673555 (patch) | |
tree | 4d0a26c3d49c65aee5c155df541f6a347ffcb0c8 /term-utils | |
parent | travis: let OSX auto-skip utmpx tools (diff) | |
download | kernel-qcow2-util-linux-77835be2737305c395b0aa18728464b075673555.tar.gz kernel-qcow2-util-linux-77835be2737305c395b0aa18728464b075673555.tar.xz kernel-qcow2-util-linux-77835be2737305c395b0aa18728464b075673555.zip |
agetty: re-add utmp.h for Debian GNU/kFreeBSD
It's needed there to get login_tty(). On normal FreeBSD we would
need libutil.h.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'term-utils')
-rw-r--r-- | term-utils/agetty.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 46eea0122..95236ce97 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__ |