Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L5Hce-0004VF-Kj for qemu-devel@nongnu.org; Wed, 26 Nov 2008 05:27:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L5Hcc-0004U3-Li for qemu-devel@nongnu.org; Wed, 26 Nov 2008 05:27:51 -0500 Received: from [199.232.76.173] (port=60762 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5Hcc-0004Tp-AV for qemu-devel@nongnu.org; Wed, 26 Nov 2008 05:27:50 -0500 Received: from outbound-va3.frontbridge.com ([216.32.180.16]:53946 helo=VA3EHSOBE001.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1L5Hcc-0005g6-0f for qemu-devel@nongnu.org; Wed, 26 Nov 2008 05:27:50 -0500 From: Christoph Egger Date: Wed, 26 Nov 2008 12:27:23 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_LSSLJSosWhjXbJ5" Message-ID: <200811261127.23684.Christoph.Egger@amd.com> Subject: [Qemu-devel] [PATCH] handle MAP_FLAGMASK Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com --Boundary-00=_LSSLJSosWhjXbJ5 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, NetBSD doesn't have MAP_FLAGMASK. Attached patch fixes this. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_LSSLJSosWhjXbJ5 Content-Type: text/x-diff; charset="us-ascii"; name="qemu_mmap.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qemu_mmap.diff" Index: bsd-user/mmap.c =================================================================== --- bsd-user/mmap.c (revision 5799) +++ 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; --Boundary-00=_LSSLJSosWhjXbJ5--