qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Include sys/mman.h before qemu-options.h
@ 2010-06-28 14:40 Jes.Sorensen
  0 siblings, 0 replies; only message in thread
From: Jes.Sorensen @ 2010-06-28 14:40 UTC (permalink / raw)
  To: anthony; +Cc: frank.arnold, qemu-devel

From: Jes Sorensen <Jes.Sorensen@redhat.com>

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>
---
 os-posix.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/os-posix.c b/os-posix.c
index 804e20c..00133a0 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>
 
-- 
1.7.0.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-28 14:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-28 14:40 [Qemu-devel] [PATCH] Include sys/mman.h before qemu-options.h Jes.Sorensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).