diff options
Diffstat (limited to 'login/login.c')
-rw-r--r-- | login/login.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/login/login.c b/login/login.c index 76f27a0875..a53613f238 100644 --- a/login/login.c +++ b/login/login.c @@ -93,7 +93,9 @@ login (const struct utmp *ut) #if _HAVE_UT_TYPE - 0 copy.ut_type = USER_PROCESS; #endif +#if _HAVE_UT_PID - 0 copy.ut_pid = getpid (); +#endif /* Seek tty. */ found_tty = tty_name (STDIN_FILENO, &tty, sizeof (_tty)); |