Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Memalign is another name for the posix aligned_alloc function, although it has weaker restrictions on the relationship between the alignment and size. memalign() is used internally by the libstdc++ when built for 'newlib' targets (which includes picolibc) instead of aligned_alloc() due to a bug in gcc, so we need to provide an implementation of this when using that library, even though it's not part of the Zephyr C library API. When a fix for the libstdc++ is merged upstream and can be consider a reasonable dependency for Zephyr, this work-around can be removed. Closes: #57899 Signed-off-by: Keith Packard <[email protected]>
- Loading branch information