UTMPX -> HAVE_UTMPX_H
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@65 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -52,13 +52,13 @@ static char sccsid[] = "@(#)sys_term.c 8.4 (Berkeley) 5/30/95";
|
|||||||
#include <initreq.h>
|
#include <initreq.h>
|
||||||
int utmp_len = MAXHOSTNAMELEN; /* sizeof(init_request.host) */
|
int utmp_len = MAXHOSTNAMELEN; /* sizeof(init_request.host) */
|
||||||
#else /* NEWINIT*/
|
#else /* NEWINIT*/
|
||||||
# ifdef UTMPX
|
# ifdef HAVE_UTMPX_H
|
||||||
# include <utmpx.h>
|
# include <utmpx.h>
|
||||||
struct utmpx wtmp;
|
struct utmpx wtmp;
|
||||||
# else
|
# else
|
||||||
# include <utmp.h>
|
# include <utmp.h>
|
||||||
struct utmp wtmp;
|
struct utmp wtmp;
|
||||||
# endif /* UTMPX */
|
# endif /* HAVE_UTMPX_H */
|
||||||
|
|
||||||
int utmp_len = sizeof(wtmp.ut_host);
|
int utmp_len = sizeof(wtmp.ut_host);
|
||||||
# ifndef PARENT_DOES_UTMP
|
# ifndef PARENT_DOES_UTMP
|
||||||
@@ -1563,7 +1563,7 @@ start_login(host, autologin, name)
|
|||||||
register char *cp;
|
register char *cp;
|
||||||
struct arg_val argv;
|
struct arg_val argv;
|
||||||
extern char *getenv();
|
extern char *getenv();
|
||||||
#ifdef UTMPX
|
#ifdef HAVE_UTMPX_H
|
||||||
register int pid = getpid();
|
register int pid = getpid();
|
||||||
struct utmpx utmpx;
|
struct utmpx utmpx;
|
||||||
#endif
|
#endif
|
||||||
@@ -1572,7 +1572,7 @@ start_login(host, autologin, name)
|
|||||||
char termbuf[64];
|
char termbuf[64];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef UTMPX
|
#ifdef HAVE_UTMPX_H
|
||||||
/*
|
/*
|
||||||
* Create utmp entry for child
|
* Create utmp entry for child
|
||||||
*/
|
*/
|
||||||
@@ -2209,7 +2209,7 @@ cleantmpdir(jid, tpath, user)
|
|||||||
* remove the utmp entry for this person.
|
* remove the utmp entry for this person.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef UTMPX
|
#ifdef HAVE_UTMPX_H
|
||||||
void
|
void
|
||||||
rmut()
|
rmut()
|
||||||
{
|
{
|
||||||
@@ -2239,7 +2239,7 @@ rmut()
|
|||||||
} /* end of rmut */
|
} /* end of rmut */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(UTMPX) && !(defined(CRAY) || defined(__hpux)) && BSD <= 43
|
#if !defined(HAVE_UTMPX_H) && !(defined(CRAY) || defined(__hpux)) && BSD <= 43
|
||||||
void
|
void
|
||||||
rmut()
|
rmut()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user