From 55771f54096eec064d8284a54a119f0b371cd7fb Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Thu, 1 Dec 2016 09:52:05 +0100 Subject: 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 Signed-off-by: Ruediger Meier --- term-utils/agetty.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'term-utils/agetty.c') 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; -- cgit v1.2.3-55-g7522