summaryrefslogtreecommitdiffstats
path: root/bsd-login.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-11-25 13:08:31 +1100
committerDamien Miller <djm@mindrot.org>1999-11-25 13:08:31 +1100
commit063fdf82755e53b5a2cf5265aaa654969b23b459 (patch)
tree03686b2d3c1be5990c412720de4ff889f734c702 /bsd-login.c
parentd8087f62d6974c812fb956429ec0dba801ab66d3 (diff)
- Merged beginnings of AIX support from Tor-Ake Fransson <torake@hotmail.com>
Diffstat (limited to 'bsd-login.c')
-rw-r--r--bsd-login.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bsd-login.c b/bsd-login.c
index 93f23026..dcbabe0b 100644
--- a/bsd-login.c
+++ b/bsd-login.c
@@ -56,6 +56,14 @@ login(utp)
register int fd;
int tty;
+#ifndef UT_LINESIZE
+# define UT_LINESIZE (sizeof(old_ut.ut_line))
+# define UT_NAMESIZE (sizeof(old_ut.ut_name))
+# ifdef HAVE_HOST_IN_UTMP
+# define UT_HOSTSIZE (sizeof(old_ut.ut_host))
+# endif
+#endif
+
tty = ttyslot();
if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) >= 0) {
#ifdef HAVE_HOST_IN_UTMP