Skip to contentSkip to conversation

Fix qemu-options enum (repost)

PATCH Applied [email protected] 2 participants 3 messages Jul 6, 2010

lore
Share & tools
lore
#0 lore raw

cover Fix qemu-options enum (repost)

From: Jes Sorensen <[email protected]>

Hi,

I think this one got lost in the noise last week. It's needed to resolve the issue where the qemu-options enum gets skewed when MAP_POPULATE isn't defined.

Please apply, having our cmdline option parsing go wrong isn't good.

Cheers,
Jes

Jes Sorensen (1):
Include sys/mman.h before qemu-options.h

 os-posix.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
#1 lore raw

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.

---
 os-posix.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
os-posix.c +2 -0
index 804e20c..00133a0 100644
@@ -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.1
#2 lore raw

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

Quoted 10 lines · On 07/06/2010 03:50 AM, [email protected] wrote:

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.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 18 lines
---
  os-posix.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)
os-posix.c +2 -0
index 804e20c..00133a0 100644
@@ -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>