From: Jes Sorensen Date: Tue, 6 Jul 2010 08:50:27 +0000 (+0200) Subject: Include sys/mman.h before qemu-options.h X-Git-Tag: v0.13.0-rc0~108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69e8b16255898524930fc2eef59aa5dc4cf3b01f;p=thirdparty%2Fqemu.git 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 Signed-off-by: Anthony Liguori --- diff --git a/os-posix.c b/os-posix.c index 804e20c1894..00133a0c765 100644 --- a/os-posix.c +++ b/os-posix.c @@ -28,6 +28,8 @@ #include #include #include +/*needed for MAP_POPULATE before including qemu-options.h */ +#include #include #include