qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/1] Include sys/mman.h before qemu-options.h


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 1/1] Include sys/mman.h before qemu-options.h
Date: Tue, 06 Jul 2010 10:46:59 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4

On 07/06/2010 03:50 AM, address@hidden wrote:
From: Jes Sorensen<address@hidden>

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<address@hidden>

Applied.  Thanks.

Regards,

Anthony Liguori
---
  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>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]