From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2YVE-0008Rw-In for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:52:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2YVE-0008Rf-4i for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:52:56 -0500 Received: from [199.232.76.173] (port=39526 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2YVE-0008RZ-0m for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:52:56 -0500 Received: from savannah.gnu.org ([199.232.41.3]:33254 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L2YVE-0000LM-3F for qemu-devel@nongnu.org; Tue, 18 Nov 2008 16:52:56 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1L2YVD-00046D-1N for qemu-devel@nongnu.org; Tue, 18 Nov 2008 21:52:55 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1L2YVC-000469-Pm for qemu-devel@nongnu.org; Tue, 18 Nov 2008 21:52:54 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Tue, 18 Nov 2008 21:52:54 +0000 Subject: [Qemu-devel] [5749] Fix Windows build 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 Revision: 5749 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5749 Author: aliguori Date: 2008-11-18 21:52:54 +0000 (Tue, 18 Nov 2008) Log Message: ----------- Fix Windows build ENOBUFS is not defined on Win32. Use ENOMEM instead which is more portable. This was reported by Herv?\195?\169 Poussineau. Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/exec.c Modified: trunk/exec.c =================================================================== --- trunk/exec.c 2008-11-18 21:09:47 UTC (rev 5748) +++ trunk/exec.c 2008-11-18 21:52:54 UTC (rev 5749) @@ -1312,7 +1312,7 @@ } wp = qemu_malloc(sizeof(*wp)); if (!wp) - return -ENOBUFS; + return -ENOMEM; wp->vaddr = addr; wp->len_mask = len_mask; @@ -1397,7 +1397,7 @@ bp = qemu_malloc(sizeof(*bp)); if (!bp) - return -ENOBUFS; + return -ENOMEM; bp->pc = pc; bp->flags = flags;