mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
os-posix: include sys/mman.h
qemu/osdep.h checks whether MAP_ANONYMOUS is defined, but this check is bogus without a previous inclusion of sys/mman.h. Include it in sysemu/os-posix.h and remove it from everywhere else. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -29,8 +29,6 @@
|
||||
|
||||
#include <glib/gprintf.h>
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include "qemu/memfd.h"
|
||||
|
||||
#ifdef CONFIG_MEMFD
|
||||
|
||||
Reference in New Issue
Block a user