diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2015-09-05 14:56:13 +0000 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2015-09-05 14:58:14 +0000 |
commit | 84c15c98ab2e800571062bdb1ac98d215edb0cc3 (patch) | |
tree | b717fa45d4c96aa4c27df77f5ed699512623aaf0 | |
parent | cbda6528817e772a5f5b3af2bb67d77cdc9699dc (diff) | |
download | screen-84c15c98ab2e800571062bdb1ac98d215edb0cc3.tar.gz |
Partially revert "change checks for utmp/utmpx in header"
This reverts commit 74fdc8988b55633cd05f8625390cd3f6a8102003.
-rw-r--r-- | src/os.h | 1 | ||||
-rw-r--r-- | src/utmp.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -262,6 +262,7 @@ extern int errno; # define pututline pututxline # define setutent setutxent # define endutent endutxent +# define ut_time ut_xtime # else /* SVR4 */ # include <utmp.h> # endif /* SVR4 */ @@ -631,7 +631,7 @@ int pid; /* must use temp variable because of NetBSD/sparc64, where * ut_xtime is long(64) but time_t is int(32) */ (void)time(&now); - u->ut_tv.tv_sec = now; + u->ut_time = now; } static slot_t @@ -743,7 +743,7 @@ int pid; strncpy(u->ut_line, line, sizeof(u->ut_line)); strncpy(u->ut_name, user, sizeof(u->ut_name)); (void)time(&now); - u->ut_tv.tv_sec = now; + u->ut_time = now; } static slot_t |