* m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Conditionally set
REPLACE_GETLOGIN_R.
* lib/unistd.in.h (getlogin_r): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.
Resolve conflicts for functions introduced in Android API level 28.
+ * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Conditionally set
+ REPLACE_GETLOGIN_R.
+ * lib/unistd.in.h (getlogin_r): Disable _GL_CXXALIASWARN invocation on
+ non-glibc systems.
+
* m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): Conditionally set
REPLACE_POSIX_SPAWN.
* lib/spawn.in.h: Adapt logic for defining the POSIX_SPAWN_* constants.
int size. */
_GL_CXXALIAS_SYS_CAST (getlogin_r, int, (char *name, size_t size));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (getlogin_r);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef getlogin_r
# if HAVE_RAW_DECL_GETLOGIN_R
-#serial 14
+#serial 15
# Copyright (C) 2005-2007, 2009-2023 Free Software Foundation, Inc.
#
gl_CHECK_FUNCS_ANDROID([getlogin_r], [[#include <unistd.h>]])
if test $ac_cv_func_getlogin_r = no; then
HAVE_GETLOGIN_R=0
+ case "$gl_cv_onwards_func_getlogin_r" in
+ future*) REPLACE_GETLOGIN_R=1 ;;
+ esac
else
HAVE_GETLOGIN_R=1
dnl On Mac OS X 10.13 and OSF/1 5.1, getlogin_r returns a truncated result