[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-trivial] [Qemu-devel] [PATCH] oslib-posix: check for posix_mem

From: Peter Maydell
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] oslib-posix: check for posix_memalign in configure script
Date: Mon, 8 Jan 2018 15:34:32 +0000

On 4 January 2018 at 17:39, Andreas Gustafsson <address@hidden> wrote:
> 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: Andreas Gustafsson <address@hidden>
> ---
>  configure          | 19 +++++++++++++++++++
>  util/oslib-posix.c |  2 +-
>  2 files changed, 20 insertions(+), 1 deletion(-)

Reviewed-by: Peter Maydell <address@hidden>

Can we put this through the -trivial tree? (cc'd)

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]