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>
This commit is contained in:
parent
85d846b88a
commit
77835be273
|
@ -208,6 +208,7 @@ AC_CHECK_HEADERS([ \
|
||||||
getopt.h \
|
getopt.h \
|
||||||
inttypes.h \
|
inttypes.h \
|
||||||
lastlog.h \
|
lastlog.h \
|
||||||
|
libutil.h \
|
||||||
linux/btrfs.h \
|
linux/btrfs.h \
|
||||||
linux/cdrom.h \
|
linux/cdrom.h \
|
||||||
linux/falloc.h \
|
linux/falloc.h \
|
||||||
|
@ -257,6 +258,7 @@ AC_CHECK_HEADERS([ \
|
||||||
sys/un.h \
|
sys/un.h \
|
||||||
unistd.h \
|
unistd.h \
|
||||||
shadow.h \
|
shadow.h \
|
||||||
|
utmp.h \
|
||||||
utmpx.h \
|
utmpx.h \
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,13 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__FreeBSD_kernel__)
|
#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
|
#endif
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
|
Loading…
Reference in New Issue