Include sys/mman.h before qemu-options.h
PATCH 1/1 Include sys/mman.h before qemu-options.h
From: Jes Sorensen <[email protected]>
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 <[email protected]>
--- os-posix.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
os-posix.c +2 -0
@@ -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>
Signature · 1 line
1.7.0.1