diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2011-11-20 14:36:57 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2011-11-20 14:36:57 +0000 |
commit | ed24810611c7d3bbaed9922865ef561bee958328 (patch) | |
tree | caf1ed57b3f013bba8addbce478e162bdcfc8d4d /comms/mgetty+sendfax/files/patch-utmp.c | |
parent | Ressurrect the game, fetch, build and runs. (diff) |
Unbreak on 9.x with utmpx.
mgetty already has utmpx support for SVR4; we can borrow it with a
few changes to make utmpx work.
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=286124
Diffstat (limited to 'comms/mgetty+sendfax/files/patch-utmp.c')
-rw-r--r-- | comms/mgetty+sendfax/files/patch-utmp.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/comms/mgetty+sendfax/files/patch-utmp.c b/comms/mgetty+sendfax/files/patch-utmp.c new file mode 100644 index 000000000000..54d09cce09e0 --- /dev/null +++ b/comms/mgetty+sendfax/files/patch-utmp.c @@ -0,0 +1,20 @@ + +$FreeBSD$ + +--- utmp.c.orig ++++ utmp.c +@@ -1,4 +1,4 @@ +-#ident "$Id: utmp.c,v 4.4 2001/12/17 22:43:24 gert Exp $ Copyright (c) Gert Doering" ++static char sccsid[] = "$Id: utmp.c,v 4.4 2001/12/17 22:43:24 gert Exp $ Copyright (c) Gert Doering"; + + /* some parts of the code (writing of the utmp entry) + * is based on the "getty kit 2.0" by Paul Sutcliffe, Jr., +@@ -58,7 +58,7 @@ + * [NB: If we wanted to set UT_INIT, it would have to be an entry with + * empty ut_name and ut_host] + */ +-#if defined(__FreeBSD__) || defined(__NetBSD__) ++#if (defined(__FreeBSD__) && (__FreeBSD_version < 900007)) || defined(__NetBSD__) + struct utmp utmp; + extern void login _PROTO(( struct utmp * utmp )); + |