From: Pádraig Brady Date: Tue, 30 Jun 2015 21:01:06 +0000 (+0100) Subject: readutmp: port to FreeBSD >= 9 X-Git-Tag: v1.0~7025 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=259e4fc29d76f4ad2128fa00caa8f9b0b56736d4;p=gnulib.git readutmp: port to FreeBSD >= 9 * lib/readutmp.h: Map utmpxname() to setutxdb(). With that coreutils who(1) and pinky(1) tests pass. --- diff --git a/ChangeLog b/ChangeLog index 37120cdcc7..ed3a306b70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-06-30 Pádraig Brady + + readutmp: port to FreeBSD >= 9 + * lib/readutmp.h: Map utmpxname() to setutxdb(). + With that coreutils who(1) and pinky(1) tests pass. + 2015-06-30 Paul Eggert mgetgroups: port to strict OS X diff --git a/lib/readutmp.h b/lib/readutmp.h index d1839eaa25..481eead210 100644 --- a/lib/readutmp.h +++ b/lib/readutmp.h @@ -47,6 +47,8 @@ # define END_UTMP_ENT endutxent # ifdef HAVE_UTMPXNAME # define UTMP_NAME_FUNCTION utmpxname +# elif defined UTXDB_ACTIVE +# define UTMP_NAME_FUNCTION(x) setutxdb (UTXDB_ACTIVE, x) # endif # if HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION