[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] readutmp: port to FreeBSD >= 9
From: |
Pádraig Brady |
Subject: |
[PATCH] readutmp: port to FreeBSD >= 9 |
Date: |
Tue, 30 Jun 2015 22:02:55 +0100 |
* lib/readutmp.h: Map utmpxname() to setutxdb().
With that coreutils who(1) and pinky(1) tests pass.
---
lib/readutmp.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/readutmp.h b/lib/readutmp.h
index d1839ea..481eead 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.4.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] readutmp: port to FreeBSD >= 9,
Pádraig Brady <=