Commit 426cd5d6d2b5759d16837fb8b3c44cd953b16bfa
1 parent
a59cb4e0
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
Showing
1 changed file
with
2 additions
and
2 deletions
exec.c
... | ... | @@ -1312,7 +1312,7 @@ int cpu_watchpoint_insert(CPUState *env, target_ulong addr, target_ulong len, |
1312 | 1312 | } |
1313 | 1313 | wp = qemu_malloc(sizeof(*wp)); |
1314 | 1314 | if (!wp) |
1315 | - return -ENOBUFS; | |
1315 | + return -ENOMEM; | |
1316 | 1316 | |
1317 | 1317 | wp->vaddr = addr; |
1318 | 1318 | wp->len_mask = len_mask; |
... | ... | @@ -1397,7 +1397,7 @@ int cpu_breakpoint_insert(CPUState *env, target_ulong pc, int flags, |
1397 | 1397 | |
1398 | 1398 | bp = qemu_malloc(sizeof(*bp)); |
1399 | 1399 | if (!bp) |
1400 | - return -ENOBUFS; | |
1400 | + return -ENOMEM; | |
1401 | 1401 | |
1402 | 1402 | bp->pc = pc; |
1403 | 1403 | bp->flags = flags; | ... | ... |