diff options
author | Ruediger Meier | 2016-12-01 09:52:05 +0100 |
---|---|---|
committer | Karel Zak | 2016-12-07 12:35:24 +0100 |
commit | 55771f54096eec064d8284a54a119f0b371cd7fb (patch) | |
tree | c2eab93c45484a6faf38426dee7bd98533a2649e /term-utils/agetty.c | |
parent | last: include libgen.h for basename(3p) (diff) | |
download | kernel-qcow2-util-linux-55771f54096eec064d8284a54a119f0b371cd7fb.tar.gz kernel-qcow2-util-linux-55771f54096eec064d8284a54a119f0b371cd7fb.tar.xz kernel-qcow2-util-linux-55771f54096eec064d8284a54a119f0b371cd7fb.zip |
login-utils: remove _HAVE_UT_TV fallback
_HAVE_UT_TV is glibc only. Moreover we want to move to utmpx where
timeval is standard.
Now utmp/subsecond (1173d0a6) should work on all supported systems.
CC: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r-- | term-utils/agetty.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c index d6cec8f20..dbf499ef5 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -943,11 +943,7 @@ static void update_utmp(struct options *op) if (fakehost) strncpy(ut.ut_host, fakehost, sizeof(ut.ut_host)); time(&t); -#if defined(_HAVE_UT_TV) ut.ut_tv.tv_sec = t; -#else - ut.ut_time = t; -#endif ut.ut_type = LOGIN_PROCESS; ut.ut_pid = pid; ut.ut_session = sid; |