aboutsummaryrefslogtreecommitdiff
path: root/os-posix.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2010-07-06 10:50:27 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-07-06 08:53:59 -0500
commit69e8b16255898524930fc2eef59aa5dc4cf3b01f (patch)
treeb9831a4843925d3cc35340b238b4cb8f36eff519 /os-posix.c
parent734003e6153b3552b9406ef598a1e67aac4a899e (diff)
Include sys/mman.h before qemu-options.h
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>
Diffstat (limited to 'os-posix.c')
-rw-r--r--os-posix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os-posix.c b/os-posix.c
index 804e20c189..00133a0c76 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -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>