about summary refs log tree commit diff
path: root/login/login.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-08-02 05:27:50 +0000
committerRoland McGrath <roland@gnu.org>1996-08-02 05:27:50 +0000
commite75154a665018d5756196275634704c95476ea6b (patch)
tree0c8f889a29304e0cc86611c629f1b620d16cf8a7 /login/login.c
parent9ebb936d991a6e08da05e5a942465d64cac39f86 (diff)
downloadglibc-e75154a665018d5756196275634704c95476ea6b.tar.gz
glibc-e75154a665018d5756196275634704c95476ea6b.tar.xz
glibc-e75154a665018d5756196275634704c95476ea6b.zip
Remade for alpha-1.93 cvs/libc-960802
Diffstat (limited to 'login/login.c')
-rw-r--r--login/login.c2
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));