]> Savannah Git Hosting - gnulib.git/commit
aligned_alloc: Fix test failures on macOS, Solaris (regr. 2024-10-30).
authorBruno Haible <bruno@clisp.org>
Mon, 4 Nov 2024 16:50:09 +0000 (17:50 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 4 Nov 2024 16:50:09 +0000 (17:50 +0100)
commita1da46a05cc65842021511bd6d68560b0240eec7
tree1d899a6f3a749e166869f33560726df428bbd136
parent3d5f0e4766b02363dc7e40c79d002ba49bdeee81
aligned_alloc: Fix test failures on macOS, Solaris (regr. 2024-10-30).

* m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Check for the Solaris
bug. Let the test program return a bit mask. Update cross-compilation
guesses.
* lib/aligned_alloc.c: Include <errno.h>.
(aligned_alloc): Fail if the alignment is not a power of 2. Work around
the Solaris bug.
* modules/aligned_alloc (Depends-on): Add malloc-posix.
* doc/posix-functions/aligned_alloc.texi: Mention the Solaris bug.
ChangeLog
doc/posix-functions/aligned_alloc.texi
lib/aligned_alloc.c
m4/aligned_alloc.m4
modules/aligned_alloc