Received: from [140.186.70.92] (port=56926 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuTeH-0007G2-H4 for qemu-devel@nongnu.org; Sat, 11 Sep 2010 13:13:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OuTeG-0002KZ-Lw for qemu-devel@nongnu.org; Sat, 11 Sep 2010 13:13:57 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:57329) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuTeG-0002KT-Fn for qemu-devel@nongnu.org; Sat, 11 Sep 2010 13:13:56 -0400 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Qemu-devel] Re: [PATCH] Prefer posix_madvise() over madvise() Date: Sat, 11 Sep 2010 19:13:33 +0200 References: <1284205917-8124-1-git-send-email-andreas.faerber@web.de> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: QEMU Developers Am 11.09.2010 um 14:11 schrieb Blue Swirl: > On Sat, Sep 11, 2010 at 11:51 AM, Andreas F=E4rber = > wrote: >> From: Andreas F=E4rber >> >> vl.c has a Sun-specific hack to supply a prototype for madvise(), >> but the call site has apparently moved to arch_init.c. >> The underlying issue is that madvise() is not a POSIX function, >> therefore Solaris' _POSIX_C_SOURCE suppresses the prototype. >> >> Haiku doesn't implement madvise() at all. > > OpenBSD doesn't implement posix_madvise(). How about adding probing to > configure and wrapping the stuff found as qemu_madvise()? Done in "Introduce qemu_madvise()". Should've been "[PATCH v2]". Andreas=