-
由 Andreas Gustafsson 提交于
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: NAndreas Gustafsson <gson@gson.org> Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru> Reviewed-by: NKamil Rytarowski <n54@gmx.com> Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
9bc5a719