]> git.ipfire.org Git - thirdparty/qemu.git/commit
memfd: fix configure test
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 28 Nov 2017 10:51:27 +0000 (11:51 +0100)
committerGreg Kurz <groug@kaod.org>
Tue, 22 May 2018 09:30:18 +0000 (11:30 +0200)
commit5892b5a9e3189205f37257c71fe41bdc3569d441
tree5b598c5c295cf3c1cf02256f395704e984acc359
parent7c1beb52ed86191d9e965444d934adaa2531710f
memfd: fix configure test

Recent glibc added memfd_create in sys/mman.h.  This conflicts with
the definition in util/memfd.c:

    /builddir/build/BUILD/qemu-2.11.0-rc1/util/memfd.c:40:12: error: static declaration of memfd_create follows non-static declaration

Fix the configure test, and remove the sys/memfd.h inclusion since the
file actually does not exist---it is a typo in the memfd_create(2) man
page.

Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 75e5b70e6b5dcc4f2219992d7cffa462aa406af0)
Signed-off-by: Greg Kurz <groug@kaod.org>
configure
util/memfd.c