* m4/posix_memalign.m4 (gl_FUNC_POSIX_MEMALIGN): Conditionally set
REPLACE_POSIX_MEMALIGN.
* lib/stdlib.in.h (posix_memalign): Disable _GL_CXXALIASWARN invocation
on non-glibc systems.
+2023-01-22 Bruno Haible <bruno@clisp.org>
+
+ Resolve conflicts for functions introduced in Android API level 16-17.
+ * m4/posix_memalign.m4 (gl_FUNC_POSIX_MEMALIGN): Conditionally set
+ REPLACE_POSIX_MEMALIGN.
+ * lib/stdlib.in.h (posix_memalign): Disable _GL_CXXALIASWARN invocation
+ on non-glibc systems.
+
2023-01-22 Bruno Haible <bruno@clisp.org>
Resolve conflicts for functions introduced in Android API level 16.
(void **memptr, size_t alignment, size_t size));
# endif
# endif
-# if @HAVE_POSIX_MEMALIGN@
+# if __GLIBC__ >= 2 && @HAVE_POSIX_MEMALIGN@
_GL_CXXALIASWARN (posix_memalign);
# endif
#elif defined GNULIB_POSIXCHECK
-# posix_memalign.m4 serial 2
+# posix_memalign.m4 serial 3
dnl Copyright (C) 2020-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,
else
dnl The system does not have posix_memalign.
HAVE_POSIX_MEMALIGN=0
+ case "$gl_cv_onwards_func_posix_memalign" in
+ future*) REPLACE_POSIX_MEMALIGN=1 ;;
+ esac
fi
])