Fix Windows build

ENOBUFS is not defined on Win32.  Use ENOMEM instead which is more portable.

This was reported by Hervé Poussineau.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5749 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/exec.c b/exec.c
index a90d076..4d39eaa 100644
--- a/exec.c
+++ b/exec.c
@@ -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;