]> git.proxmox.com Git - mirror_qemu.git/commit
os-posix: include sys/mman.h
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Jun 2016 11:57:39 +0000 (13:57 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jun 2016 16:39:03 +0000 (18:39 +0200)
commit02d0e095031b7fda77de8b558465a57659ea79cb
tree78ce56328efb58eec9c99584b71229bae47d3030
parent89266923df71e51f406184d3e8b55d2a3aaa4c4d
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>
54 files changed:
audio/ossaudio.c
block/qcow2-cache.c
bsd-user/elfload.c
bsd-user/main.c
bsd-user/mmap.c
bsd-user/syscall.c
contrib/ivshmem-server/ivshmem-server.c
exec.c
hw/block/xen_disk.c
hw/char/xen_console.c
hw/display/xenfb.c
hw/i386/kvm/pci-assign.c
hw/misc/ivshmem.c
hw/misc/pc-testdev.c
hw/net/xen_nic.c
hw/usb/xen-usb.c
hw/vfio/common.c
hw/vfio/pci.c
hw/virtio/virtio-balloon.c
hw/xen/xen_backend.c
hw/xen/xen_pt_msi.c
include/qemu/osdep.h
include/sysemu/os-posix.h
kvm-all.c
linux-user/elfload.c
linux-user/flatload.c
linux-user/main.c
linux-user/mmap.c
linux-user/strace.c
linux-user/syscall.c
migration/postcopy-ram.c
net/netmap.c
os-posix.c
qemu-char.c
scripts/clean-includes
target-arm/kvm.c
target-arm/kvm32.c
target-arm/kvm64.c
target-i386/kvm.c
target-mips/kvm.c
target-ppc/kvm.c
target-s390x/kvm.c
tests/i440fx-test.c
tests/ivshmem-test.c
tests/postcopy-test.c
tests/vhost-user-bridge.c
tests/vhost-user-test.c
translate-all.c
util/memfd.c
util/mmap-alloc.c
util/osdep.c
util/oslib-posix.c
xen-hvm.c
xen-mapcache.c