summaryrefslogtreecommitdiffstats
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 optionalPRE_HPUX_INTEGRATION
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 a2ec7414..c0f4c1ab 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 <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
-#ifdef HAVE_UTMPX_H
+#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
# include <utmpx.h>
#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