From 08f3133adeea1c0f1a57b7fb4e8489252d69d8e0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 9 Jan 2023 21:27:46 +0100 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ modules/aligned-malloc | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3b2773fb48..7554f5ba03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-01-09 Bruno Haible + + 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. + 2023-01-09 Bruno Haible malloc-h: Improve portability. 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 ]]) Makefile.am: -- 2.39.5