aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-18 21:52:54 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-18 21:52:54 +0000
commit426cd5d6d2b5759d16837fb8b3c44cd953b16bfa (patch)
treee0492dcd23116c2a0102c1b1836bfebcb04913c8
parenta59cb4e02322ac6e276715ef3acb3c84a82206ef (diff)
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
-rw-r--r--exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec.c b/exec.c
index a90d07646d..4d39eaaf20 100644
--- a/exec.c
+++ b/exec.c
@@ -1312,7 +1312,7 @@ int cpu_watchpoint_insert(CPUState *env, target_ulong addr, target_ulong len,
}
wp = qemu_malloc(sizeof(*wp));
if (!wp)
- return -ENOBUFS;
+ return -ENOMEM;
wp->vaddr = addr;
wp->len_mask = len_mask;
@@ -1397,7 +1397,7 @@ int cpu_breakpoint_insert(CPUState *env, target_ulong pc, int flags,
bp = qemu_malloc(sizeof(*bp));
if (!bp)
- return -ENOBUFS;
+ return -ENOMEM;
bp->pc = pc;
bp->flags = flags;