qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5749] Fix Windows build
@ 2008-11-18 21:52 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-11-18 21:52 UTC (permalink / raw)
  To: qemu-devel

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 <aliguori@us.ibm.com>

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-18 21:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18 21:52 [Qemu-devel] [5749] Fix Windows build Anthony Liguori

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