summaryrefslogtreecommitdiff
path: root/lib/readutmp.h
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-06-30 22:01:06 +0100
committerPádraig Brady <P@draigBrady.com>2015-07-01 00:48:46 +0100
commit259e4fc29d76f4ad2128fa00caa8f9b0b56736d4 (patch)
tree2d5c3472af3e629b82523e07b9d899d154619ee5 /lib/readutmp.h
parent18738862eba59f7277f396dc4bd11d9834c2c7bc (diff)
downloadgnulib-259e4fc29d76f4ad2128fa00caa8f9b0b56736d4.tar.gz
readutmp: port to FreeBSD >= 9
* lib/readutmp.h: Map utmpxname() to setutxdb(). With that coreutils who(1) and pinky(1) tests pass.
Diffstat (limited to 'lib/readutmp.h')
-rw-r--r--lib/readutmp.h2
1 files changed, 2 insertions, 0 deletions
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