Fixes for dtlogin and dtcm on FreeBSD.

This commit is contained in:
Ulrich Wilkens
2012-09-05 16:26:28 +02:00
committed by Jon Trulson
parent 591e58fe1a
commit 33da5fa944
6 changed files with 27 additions and 3 deletions

View File

@@ -1697,8 +1697,13 @@ GettyMessage( struct display *d, int msgnum )
int
GettyRunning( struct display *d )
{
#if defined(__FreeBSD__)
struct utmpx utmp; /* local struct for new entry */
struct utmpx *u; /* pointer to entry in utmp file */
#else
struct utmp utmp; /* local struct for new entry */
struct utmp *u; /* pointer to entry in utmp file */
#endif
int rvalue; /* return value (TRUE or FALSE) */
char buf[32];
@@ -1717,7 +1722,11 @@ GettyRunning( struct display *d )
return FALSE;
#if defined(__FreeBSD__)
bzero(&utmp, sizeof(struct utmpx));
#else
bzero(&utmp, sizeof(struct utmp));
#endif
#ifdef _AIX
if (!strcmp(d->gettyLine,"console")) {