* m4/login_tty.m4 (gl_FUNC_LOGIN_TTY): Conditionally set
REPLACE_LOGIN_TTY.
* lib/utmp.in.h (login_tty): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.
Resolve conflicts for functions introduced in Android API level 23.
+ * m4/login_tty.m4 (gl_FUNC_LOGIN_TTY): Conditionally set
+ REPLACE_LOGIN_TTY.
+ * lib/utmp.in.h (login_tty): Disable _GL_CXXALIASWARN invocation on
+ non-glibc systems.
+
* m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Conditionally set REPLACE_MKFIFOAT.
* lib/sys_stat.in.h (mkfifoat): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.
# endif
_GL_CXXALIAS_SYS (login_tty, int, (int fd));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (login_tty);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef login_tty
# if HAVE_RAW_DECL_LOGIN_TTY
-# login_tty.m4 serial 1
+# login_tty.m4 serial 2
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,
if test $ac_cv_func_login_tty = no; then
HAVE_LOGIN_TTY=0
+ case "$gl_cv_onwards_func_login_tty" in
+ future*) REPLACE_LOGIN_TTY=1 ;;
+ esac
fi
])