summaryrefslogtreecommitdiffstats
path: root/comms/mgetty+sendfax/files/patch-utmp.c
blob: fd2178b4a11b3f24d4e875d21aaea955851ce64b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- 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 ));
 
OpenPOWER on IntegriCloud