Hiramatsu Yoshifumi in PR pkg/26962. - Use ut_session only when it is available in struct utmpx. - If updwtmpx is not available, use pututxline instead. - Bulid functions using struct utmp only when the struct utmp is available.