diff options
author | Bruno Haible <bruno@clisp.org> | 2020-07-21 18:09:35 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-07-21 18:20:01 +0200 |
commit | ac34618e85013bfec4650f02e8e79c5de6d80fb3 (patch) | |
tree | 2c0b5c6b04ab1f28aef3c978ab71ed147a69d473 /modules/aligned-malloc | |
parent | fd8403522f26c5dca64fcc29bcf4c6b4c5b08335 (diff) | |
download | gnulib-ac34618e85013bfec4650f02e8e79c5de6d80fb3.tar.gz |
aligned-malloc: Optionally use aligned_alloc.
* lib/aligned-malloc.h: Verify the alignment.
(aligned_malloc): Use aligned_alloc as an alternative.
* modules/aligned-malloc (configure.ac): Test for aligned_alloc.
* doc/posix-functions/aligned_alloc.texi: Mention the modules
'aligned-malloc' and 'pagealign_alloc'.
Diffstat (limited to 'modules/aligned-malloc')
-rw-r--r-- | modules/aligned-malloc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/aligned-malloc b/modules/aligned-malloc index 29483d83d7..d562e3d6b9 100644 --- a/modules/aligned-malloc +++ b/modules/aligned-malloc @@ -11,7 +11,7 @@ stdint configure.ac: gl_MALLOC_ALIGNMENT AC_REQUIRE([AC_C_INLINE]) -AC_CHECK_FUNCS([posix_memalign memalign]) +AC_CHECK_FUNCS([posix_memalign aligned_alloc memalign]) Makefile.am: |