summaryrefslogtreecommitdiff
path: root/bsd-login.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-login.c')
-rw-r--r--bsd-login.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsd-login.c b/bsd-login.c
index a2ec74142..c0f4c1ab0 100644
--- a/bsd-login.c
+++ b/bsd-login.c
@@ -45,7 +45,7 @@ static char *rcsid = "$OpenBSD: login.c,v 1.5 1998/07/13 02:11:12 millert Exp $"
45#include <fcntl.h> 45#include <fcntl.h>
46#include <unistd.h> 46#include <unistd.h>
47#include <stdlib.h> 47#include <stdlib.h>
48#ifdef HAVE_UTMPX_H 48#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
49# include <utmpx.h> 49# include <utmpx.h>
50#endif 50#endif
51#ifdef HAVE_UTMP_H 51#ifdef HAVE_UTMP_H
@@ -64,7 +64,7 @@ login(utp)
64 64
65#ifndef UT_LINESIZE 65#ifndef UT_LINESIZE
66# define UT_LINESIZE (sizeof(old_ut.ut_line)) 66# define UT_LINESIZE (sizeof(old_ut.ut_line))
67# ifdef HAVE_UTMPX_H 67# if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
68# define UT_NAMESIZE (sizeof(old_ut.ut_user)) 68# define UT_NAMESIZE (sizeof(old_ut.ut_user))
69# else 69# else
70# define UT_NAMESIZE (sizeof(old_ut.ut_name)) 70# define UT_NAMESIZE (sizeof(old_ut.ut_name))
@@ -72,7 +72,7 @@ login(utp)
72# ifdef HAVE_HOST_IN_UTMP 72# ifdef HAVE_HOST_IN_UTMP
73# define UT_HOSTSIZE (sizeof(old_ut.ut_host)) 73# define UT_HOSTSIZE (sizeof(old_ut.ut_host))
74# endif 74# endif
75# ifdef HAVE_HOST_IN_UTMPX 75# if defined(HAVE_HOST_IN_UTMPX) && defined(USE_UTMPX)
76# define UT_HOSTSIZE (sizeof(old_ut.ut_host)) 76# define UT_HOSTSIZE (sizeof(old_ut.ut_host))
77# endif 77# endif
78#endif 78#endif