diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2010-07-06 10:50:27 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 08:53:59 -0500 |
commit | 69e8b16255898524930fc2eef59aa5dc4cf3b01f (patch) | |
tree | b9831a4843925d3cc35340b238b4cb8f36eff519 /os-posix.c | |
parent | 734003e6153b3552b9406ef598a1e67aac4a899e (diff) | |
download | qemu-69e8b16255898524930fc2eef59aa5dc4cf3b01f.zip qemu-69e8b16255898524930fc2eef59aa5dc4cf3b01f.tar.gz qemu-69e8b16255898524930fc2eef59aa5dc4cf3b01f.tar.bz2 |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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> |