diff options
author | Roland McGrath <roland@gnu.org> | 1996-08-02 05:27:50 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-08-02 05:27:50 +0000 |
commit | e75154a665018d5756196275634704c95476ea6b (patch) | |
tree | 0c8f889a29304e0cc86611c629f1b620d16cf8a7 /login/logwtmp.c | |
parent | 9ebb936d991a6e08da05e5a942465d64cac39f86 (diff) | |
download | glibc-e75154a665018d5756196275634704c95476ea6b.zip glibc-e75154a665018d5756196275634704c95476ea6b.tar.gz glibc-e75154a665018d5756196275634704c95476ea6b.tar.bz2 |
Remade for alpha-1.93cvs/libc-960802
Diffstat (limited to 'login/logwtmp.c')
-rw-r--r-- | login/logwtmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/login/logwtmp.c b/login/logwtmp.c index 2ae6a68..17c9001 100644 --- a/login/logwtmp.c +++ b/login/logwtmp.c @@ -39,7 +39,9 @@ logwtmp (const char *line, const char *name, const char *host) /* Set information in new entry. */ memset (&ut, 0, sizeof (ut)); +#if _HAVE_UT_PID - 0 ut.ut_pid = getpid (); +#endif #if _HAVE_UT_TYPE - 0 ut.ut_type = name[0] ? USER_PROCESS : DEAD_PROCESS; #endif @@ -52,7 +54,7 @@ logwtmp (const char *line, const char *name, const char *host) #if _HAVE_UT_TV - 0 __gettimeofday (&ut.ut_tv, NULL); #else - __time (&ut.ut_time); + time (&ut.ut_time); #endif /* Try to lock the file. */ |