summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-07-04 20:37:44 +0200
committerLaurent Vivier <laurent@vivier.eu>2021-07-07 21:25:10 +0200
commitf5f35cec5a08e3b16bff482e8fe1578f62dd3e09 (patch)
tree99c0dabce572d9cb967f430815974e9b1aa9f1b2
parenta46955ff61104d13e5769a47a1b4e0f78dd1c70d (diff)
downloadfocaccia-qemu-f5f35cec5a08e3b16bff482e8fe1578f62dd3e09.tar.gz
focaccia-qemu-f5f35cec5a08e3b16bff482e8fe1578f62dd3e09.zip
linux-user/alpha: 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-2-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r--linux-user/alpha/target_syscall.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/alpha/target_syscall.h b/linux-user/alpha/target_syscall.h
index fd389422e3..4e6f936056 100644
--- a/linux-user/alpha/target_syscall.h
+++ b/linux-user/alpha/target_syscall.h
@@ -44,6 +44,8 @@ struct target_pt_regs {
 #define UNAME_MACHINE "alpha"
 #define UNAME_MINIMUM_RELEASE "2.6.32"
 
+#undef TARGET_EWOULDBLOCK
+#define TARGET_EWOULDBLOCK      TARGET_EAGAIN /* Operation would block */
 #undef TARGET_EDEADLK
 #define TARGET_EDEADLK		11
 #undef TARGET_EAGAIN