mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
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
This commit is contained in:
parent
a59cb4e023
commit
426cd5d6d2
4
exec.c
4
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;
|
||||
|
Loading…
Reference in New Issue
Block a user