diff options
author | Damien Miller <djm@mindrot.org> | 2000-05-20 15:02:59 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-05-20 15:02:59 +1000 |
commit | dfc83f42eba83d6dd127ce36fb33a490163c32de (patch) | |
tree | 8da6dce300467bc31e4fea7c4bda0c3181d24bbb /bsd-login.c | |
parent | ad1bc5f986ac31ea3f429d2c49d7f34bd78e32fc (diff) |
- SunOS 4.x support from Todd C. Miller <Todd.Miller@courtesan.com>
Diffstat (limited to 'bsd-login.c')
-rw-r--r-- | bsd-login.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bsd-login.c b/bsd-login.c index de49214c0..ecd5e05af 100644 --- a/bsd-login.c +++ b/bsd-login.c | |||
@@ -60,6 +60,7 @@ static char *rcsid = "$OpenBSD: login.c,v 1.5 1998/07/13 02:11:12 millert Exp $" | |||
60 | #include <stdio.h> | 60 | #include <stdio.h> |
61 | #include <string.h> | 61 | #include <string.h> |
62 | 62 | ||
63 | #ifdef USER_PROCESS | ||
63 | /* | 64 | /* |
64 | * find first matching slot in utmp, or "-1" for none | 65 | * find first matching slot in utmp, or "-1" for none |
65 | * | 66 | * |
@@ -95,6 +96,13 @@ struct utmp * utp; | |||
95 | #endif | 96 | #endif |
96 | return(-1); | 97 | return(-1); |
97 | } | 98 | } |
99 | #else | ||
100 | int find_tty_slot( utp ) | ||
101 | struct utmp * utp; | ||
102 | { | ||
103 | return(ttyslot()); | ||
104 | } | ||
105 | #endif | ||
98 | 106 | ||
99 | #if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) | 107 | #if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) |
100 | void | 108 | void |