diff options
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 93f230266..dcbabe0bf 100644 --- a/bsd-login.c +++ b/bsd-login.c | |||
@@ -56,6 +56,14 @@ login(utp) | |||
56 | register int fd; | 56 | register int fd; |
57 | int tty; | 57 | int tty; |
58 | 58 | ||
59 | #ifndef UT_LINESIZE | ||
60 | # define UT_LINESIZE (sizeof(old_ut.ut_line)) | ||
61 | # define UT_NAMESIZE (sizeof(old_ut.ut_name)) | ||
62 | # ifdef HAVE_HOST_IN_UTMP | ||
63 | # define UT_HOSTSIZE (sizeof(old_ut.ut_host)) | ||
64 | # endif | ||
65 | #endif | ||
66 | |||
59 | tty = ttyslot(); | 67 | tty = ttyslot(); |
60 | if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) >= 0) { | 68 | if (tty > 0 && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) >= 0) { |
61 | #ifdef HAVE_HOST_IN_UTMP | 69 | #ifdef HAVE_HOST_IN_UTMP |