mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06: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:
parent
89266923df
commit
02d0e09503
54 changed files with 4 additions and 68 deletions
|
@ -197,8 +197,6 @@ void qemu_anon_ram_free(void *ptr, size_t size);
|
|||
|
||||
#if defined(CONFIG_MADVISE)
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
||||
#define QEMU_MADV_WILLNEED MADV_WILLNEED
|
||||
#define QEMU_MADV_DONTNEED MADV_DONTNEED
|
||||
#ifdef MADV_DONTFORK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue