]> Savannah Git Hosting - gnulib.git/commitdiff
readutmp: port to FreeBSD >= 9
authorPádraig Brady <P@draigBrady.com>
Tue, 30 Jun 2015 21:01:06 +0000 (22:01 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 30 Jun 2015 23:48:46 +0000 (00:48 +0100)
* lib/readutmp.h: Map utmpxname() to setutxdb().
With that coreutils who(1) and pinky(1) tests pass.

ChangeLog
lib/readutmp.h

index 37120cdcc7f491eb52544d657560b13731fdcd0e..ed3a306b70f13a4a3d0d8ecf0ef1625bec708b0e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-06-30  Pádraig Brady  <P@draigBrady.com>
+
+       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  <eggert@cs.ucla.edu>
 
        mgetgroups: port to strict OS X
index d1839eaa25a109d417a22d29e33e762b2b7723dd..481eead2102e35a3dc6138d6085106809d5c978a 100644 (file)
@@ -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