From 368cf64d5c7cee6eb85d9240ea04ccf43273b5fc Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 21 Dec 1999 09:51:36 +1100 Subject: Made utmpx optional --- bsd-login.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bsd-login.c') 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 $" #include #include #include -#ifdef HAVE_UTMPX_H +#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) # include #endif #ifdef HAVE_UTMP_H @@ -64,7 +64,7 @@ login(utp) #ifndef UT_LINESIZE # define UT_LINESIZE (sizeof(old_ut.ut_line)) -# ifdef HAVE_UTMPX_H +# if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) # define UT_NAMESIZE (sizeof(old_ut.ut_user)) # else # define UT_NAMESIZE (sizeof(old_ut.ut_name)) @@ -72,7 +72,7 @@ login(utp) # ifdef HAVE_HOST_IN_UTMP # define UT_HOSTSIZE (sizeof(old_ut.ut_host)) # endif -# ifdef HAVE_HOST_IN_UTMPX +# if defined(HAVE_HOST_IN_UTMPX) && defined(USE_UTMPX) # define UT_HOSTSIZE (sizeof(old_ut.ut_host)) # endif #endif -- cgit v1.2.3