summaryrefslogtreecommitdiff
path: root/bsd-login.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-12-21 09:51:36 +1100
committerDamien Miller <djm@mindrot.org>1999-12-21 09:51:36 +1100
commit368cf64d5c7cee6eb85d9240ea04ccf43273b5fc (patch)
tree19b5ce1233714df994e9e1699e791d269c577d2c /bsd-login.c
parentfdb7caf293e860fda343f9cc98ff3342ed997b73 (diff)
Made utmpx optional
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