]> Savannah Git Hosting - gnulib.git/commitdiff
aligned-malloc: Don't disturb the module aligned_alloc.
authorBruno Haible <bruno@clisp.org>
Mon, 9 Jan 2023 20:27:46 +0000 (21:27 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 9 Jan 2023 20:28:12 +0000 (21:28 +0100)
* modules/aligned-malloc (configure.ac): Test for aligned_alloc in the
same way as module aligned_alloc does.

ChangeLog
modules/aligned-malloc

index 3b2773fb487e2c325392795f8f8046fc0b6b7710..7554f5ba0300f5964a4ae47157acc07bc5844dcd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-09  Bruno Haible  <bruno@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.
+
 2023-01-09  Bruno Haible  <bruno@clisp.org>
 
        malloc-h: Improve portability.
index 018069510f0294570065b44065b6e586dc55b239..1ef05d1b76e5b4ae2a7c6a2e7885b5d02ebec171 100644 (file)
@@ -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: