qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 3/6] qemu fixes
@ 2008-11-28 10:33 Christoph Egger
  2008-11-28 18:01 ` [Qemu-devel] " Blue Swirl
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Egger @ 2008-11-28 10:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Blue Swirl

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]


Hi,

This is a series of four patches which improve support
for qemu on NetBSD.

Attached patch makes bsd-user compiling on NetBSD.
NetBSD doesn't have MAP_FLAGMASK.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>


-- 
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy

[-- Attachment #2: bsduser_qemu.diff --]
[-- Type: text/x-diff, Size: 371 bytes --]

Index: bsd-user/mmap.c
===================================================================
--- bsd-user/mmap.c	(revision 5805)
+++ bsd-user/mmap.c	(working copy)
@@ -30,6 +30,10 @@
 
 //#define DEBUG_MMAP
 
+#ifndef MAP_FLAGMASK
+#define MAP_FLAGMASK	~MAP_ALIGNMENT_MASK
+#endif
+
 #if defined(USE_NPTL)
 pthread_mutex_t mmap_mutex;
 static int __thread mmap_lock_count;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-28 18:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28 10:33 [Qemu-devel] [PATCH 3/6] qemu fixes Christoph Egger
2008-11-28 18:01 ` [Qemu-devel] " Blue Swirl

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).