]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Include sys/mman.h before qemu-options.h
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 6 Jul 2010 08:50:27 +0000 (10:50 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Jul 2010 13:53:59 +0000 (08:53 -0500)
The result of parsing qemu-options.def depends on whehter or not
MAP_POPULATE is defined, so make sure to include sys/mman.h before
including qemu-options.h.

Reported by Frank Arnold.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
os-posix.c

index 804e20c189454ce09155fee99d645cd21b72d920..00133a0c7658dd0efcbf9ee9561884662b2edb4b 100644 (file)
@@ -28,6 +28,8 @@
 #include <signal.h>
 #include <sys/types.h>
 #include <sys/wait.h>
+/*needed for MAP_POPULATE before including qemu-options.h */
+#include <sys/mman.h>
 #include <pwd.h>
 #include <libgen.h>