Resolve conflicts for functions introduced in Android API level 16.
+ * m4/tsearch.m4 (gl_FUNC_TSEARCH): Conditionally set REPLACE_TSEARCH.
+ * lib/search.in.h (tsearch, tfind, tdelete, twalk): Disable
+ _GL_CXXALIASWARN invocation on non-glibc systems.
+
* m4/faccessat.m4 (gl_FUNC_FACCESSAT): Conditionally set
REPLACE_FACCESSAT.
* lib/unistd.in.h (faccessat): Disable _GL_CXXALIASWARN invocation on
(const void *key, void **vrootp,
_gl_search_compar_fn compar));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (tsearch);
+# endif
/* Searches an element in the tree *VROOTP that compares equal to KEY.
If one is found, it is returned. Otherwise, NULL is returned. */
(const void *key, void *const *vrootp,
_gl_search_compar_fn compar));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (tfind);
+# endif
/* Searches an element in the tree *VROOTP that compares equal to KEY.
If one is found, it is removed from the tree, and its parent node is
(const void *restrict key, void **restrict vrootp,
_gl_search_compar_fn compar));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (tdelete);
+# endif
/* Perform a depth-first, left-to-right traversal of the tree VROOT.
The ACTION function is called:
_GL_CXXALIAS_SYS (twalk, void,
(const void *vroot, _gl_search_action_fn action));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (twalk);
+# endif
/* Flags used by tsearch.c. */
# define GNULIB_defined_tsearch (@REPLACE_TSEARCH@ || !@HAVE_TSEARCH@)
-# tsearch.m4 serial 10
+# tsearch.m4 serial 11
dnl Copyright (C) 2006-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,
esac
else
HAVE_TSEARCH=0
+ case "$gl_cv_onwards_func_tsearch" in
+ future*) REPLACE_TSEARCH=1 ;;
+ esac
fi
if test $ac_cv_func_twalk != yes; then
HAVE_TWALK=0