I wrote: > * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Use > gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
This is not sufficient, because there is another test for aligned_alloc in a different place. This fixes it. 2023-01-09 Bruno Haible <br...@clisp.org> aligned-malloc: Don't disturb the module aligned_alloc. * modules/aligned-malloc (configure.ac): Test for aligned_alloc in the same way as module aligned_alloc does. diff --git a/modules/aligned-malloc b/modules/aligned-malloc index 018069510f..1ef05d1b76 100644 --- a/modules/aligned-malloc +++ b/modules/aligned-malloc @@ -14,7 +14,8 @@ memalign configure.ac: gl_MALLOC_ALIGNMENT AC_REQUIRE([AC_C_INLINE]) -AC_CHECK_FUNCS_ONCE([posix_memalign aligned_alloc memalign]) +AC_CHECK_FUNCS_ONCE([posix_memalign memalign]) +gl_CHECK_FUNCS_ANDROID([aligned_alloc], [[#include <stdlib.h>]]) Makefile.am: