From 259e4fc29d76f4ad2128fa00caa8f9b0b56736d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Tue, 30 Jun 2015 22:01:06 +0100 Subject: [PATCH] readutmp: port to FreeBSD >= 9 * lib/readutmp.h: Map utmpxname() to setutxdb(). With that coreutils who(1) and pinky(1) tests pass. --- ChangeLog | 6 ++++++ lib/readutmp.h | 2 ++ 2 files changed, 8 insertions(+) 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 -- 2.39.5