]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: re-add lastlog.h header
authorRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 1 Dec 2016 08:52:09 +0000 (09:52 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 7 Dec 2016 11:35:24 +0000 (12:35 +0100)
This include was removed in a365953a but we will need it again
when we move from utmp.h to utmpx.h.

On Linux (glibc, musl) the struct lastlog is defined in utmp.h
and lastlog.h just includes utmp.h.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Conflicts:
login-utils/login.c

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
configure.ac
login-utils/login.c

index dddc6a9ca7566d5445e05a01a5edec280c1d528c..73c1b29e4ded9442a6672064158c401a8dda0d6e 100644 (file)
@@ -207,6 +207,7 @@ AC_CHECK_HEADERS([ \
        fcntl.h \
        getopt.h \
        inttypes.h \
+       lastlog.h \
        linux/btrfs.h \
        linux/cdrom.h \
        linux/falloc.h \
index 043fce12950bf1405287e695eb8146401b0dda9a..343044865845dc33ea292f064095518b1c606851 100644 (file)
@@ -46,6 +46,9 @@
 #include <grp.h>
 #include <pwd.h>
 #include <utmp.h>
+#ifdef HAVE_LASTLOG_H
+# include <lastlog.h>
+#endif
 #include <stdlib.h>
 #include <sys/syslog.h>
 #ifdef HAVE_LINUX_MAJOR_H