--- qemu/linux-user/mipsn32/syscall.h 2018/04/24 16:48:17 1.1 +++ qemu/linux-user/mipsn32/syscall.h 2018/04/24 19:36:24 1.1.1.2 @@ -218,4 +218,7 @@ struct target_pt_regs { +/* Nasty hack: define a fake errno value for use by sigreturn. */ +#define TARGET_QEMU_ESIGRETURN 255 + #define UNAME_MACHINE "mips64"