Skip to content
Commit 9bc5a719 authored by Andreas Gustafsson's avatar Andreas Gustafsson Committed by Michael Tokarev
Browse files

oslib-posix: check for posix_memalign in configure script



Check for the presence of posix_memalign() in the configure script,
not using "defined(_POSIX_C_SOURCE) && !defined(__sun__)".  This
lets qemu use posix_memalign() on NetBSD versions that have it,
instead of falling back to valloc() which is wasteful when the
required alignment is smaller than a page.

Signed-off-by: default avatarAndreas Gustafsson <gson@gson.org>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
Reviewed-by: default avatarKamil Rytarowski <n54@gmx.com>
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent a348f64d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment