+2024-01-21 Bruno Haible <bruno@clisp.org>
+
+ readutmp: Port to Android NDK r26.
+ Reported by Po Lu <luangruo@yahoo.com> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2024-01/msg00063.html>.
+ * lib/readutmp.h: (UTMP_NAME_FUNCTION): Define as a no-op for Android
+ with HAVE_UTMPX_H.
+
2024-01-21 Bruno Haible <bruno@clisp.org>
asyncsafe-spin: Fix link error on various platforms.
/* Declarations for GNU's read utmp module.
- Copyright (C) 1992-2007, 2009-2023 Free Software Foundation, Inc.
+ Copyright (C) 1992-2007, 2009-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
# define UTMP_NAME_FUNCTION utmpxname
# elif defined UTXDB_ACTIVE
# define UTMP_NAME_FUNCTION(x) setutxdb (UTXDB_ACTIVE, x)
+# elif defined __ANDROID__ /* Android */
+/* As of Android NDK r26, the getutxent, setutxent functions are no-ops.
+ Therefore we can ignore the file name. */
+# define UTMP_NAME_FUNCTION(x) ((void) (x))
# endif
# if HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION