+2023-01-05 Bruno Haible <bruno@clisp.org>
+
+ getpass: Fix compilation error on Android.
+ * m4/getpass.m4 (gl_FUNC_GETPASS): Define NO_INLINE_GETPASS.
+ * doc/glibc-functions/getpass.texi: Mention the Android problem.
+
2023-01-05 Bruno Haible <bruno@clisp.org>
Recognize functions added in future versions of Android.
@item
This function is missing on some platforms:
mingw, MSVC 14, Android 9.0.
+@item
+This function cannot be called from plain inline or extern inline functions
+on some platforms:
+Android 13.
@end itemize
Portability problems fixed by Gnulib module @code{getpass-gnu}:
-# getpass.m4 serial 17
+# getpass.m4 serial 18
dnl Copyright (C) 2002-2003, 2005-2006, 2009-2023 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl Persuade Solaris <unistd.h> and <stdlib.h> to declare getpass().
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+ dnl Persuade Android <unistd.h> to not define getpass() as an inline function.
+ AC_DEFINE([NO_INLINE_GETPASS], [1], [Define to 1 on Android.])
+
AC_CHECK_FUNCS_ONCE([getpass])
if test $ac_cv_func_getpass = no; then
HAVE_GETPASS=0