qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5749] Fix Windows build


From: Anthony Liguori
Subject: [Qemu-devel] [5749] Fix Windows build
Date: Tue, 18 Nov 2008 21:52:54 +0000

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 <address@hidden>

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;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]