From: Ruediger Meier Date: Thu, 1 Dec 2016 08:52:09 +0000 (+0100) Subject: login: re-add lastlog.h header X-Git-Tag: v2.30-rc1~369 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6578ced75c1314b7b49644bd0324194e9849d935;p=thirdparty%2Futil-linux.git login: re-add lastlog.h header 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 Conflicts: login-utils/login.c Signed-off-by: Ruediger Meier --- diff --git a/configure.ac b/configure.ac index dddc6a9ca7..73c1b29e4d 100644 --- a/configure.ac +++ b/configure.ac @@ -207,6 +207,7 @@ AC_CHECK_HEADERS([ \ fcntl.h \ getopt.h \ inttypes.h \ + lastlog.h \ linux/btrfs.h \ linux/cdrom.h \ linux/falloc.h \ diff --git a/login-utils/login.c b/login-utils/login.c index 043fce1295..3430448658 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -46,6 +46,9 @@ #include #include #include +#ifdef HAVE_LASTLOG_H +# include +#endif #include #include #ifdef HAVE_LINUX_MAJOR_H