linux-user/mips: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN
Linux kernel defines EWOULDBLOCK as EAGAIN (since before v2.6.12-rc2). Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210704183755.655002-4-f4bug@amsat.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
db10481c00
commit
bc3359f739
@ -21,6 +21,8 @@ struct target_pt_regs {
|
||||
};
|
||||
|
||||
/* Target errno definitions taken from asm-mips/errno.h */
|
||||
#undef TARGET_EWOULDBLOCK
|
||||
#define TARGET_EWOULDBLOCK TARGET_EAGAIN /* Operation would block */
|
||||
#undef TARGET_ENOMSG
|
||||
#define TARGET_ENOMSG 35 /* Identifier removed */
|
||||
#undef TARGET_EIDRM
|
||||
|
@ -18,6 +18,8 @@ struct target_pt_regs {
|
||||
};
|
||||
|
||||
/* Target errno definitions taken from asm-mips/errno.h */
|
||||
#undef TARGET_EWOULDBLOCK
|
||||
#define TARGET_EWOULDBLOCK TARGET_EAGAIN /* Operation would block */
|
||||
#undef TARGET_ENOMSG
|
||||
#define TARGET_ENOMSG 35 /* Identifier removed */
|
||||
#undef TARGET_EIDRM
|
||||
|
Loading…
Reference in New Issue
Block a user