+2023-01-22 Bruno Haible <bruno@clisp.org>
+
+ Resolve conflicts for functions introduced in Android API level 8.
+ * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Conditionally set
+ REPLACE_TTYNAME_R.
+ * lib/unistd.in.h (ttyname_r): Disable _GL_CXXALIASWARN invocation on
+ non-glibc systems.
+
2023-01-22 Bruno Haible <bruno@clisp.org>
Prepare for resolving conflicts regarding future Android API levels.
_GL_CXXALIAS_SYS (ttyname_r, int,
(int fd, char *buf, size_t buflen));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (ttyname_r);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef ttyname_r
# if HAVE_RAW_DECL_TTYNAME_R
-# ttyname_r.m4 serial 12
+# ttyname_r.m4 serial 13
dnl Copyright (C) 2010-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_CHECK_FUNCS_ANDROID([ttyname_r], [[#include <unistd.h>]])
if test $ac_cv_func_ttyname_r = no; then
HAVE_TTYNAME_R=0
+ case "$gl_cv_onwards_func_ttyname_r" in
+ future*) REPLACE_TTYNAME_R=1 ;;
+ esac
else
HAVE_TTYNAME_R=1
dnl On Mac OS X 10.4 (and Solaris 10 without gl_USE_SYSTEM_EXTENSIONS)