Commit 9c2970fb authored by Willy Tarreau's avatar Willy Tarreau Committed by Paul E. McKenney

tools/nolibc: use pselect6 on RISCV

This arch doesn't provide the old-style select() syscall, we have to
use pselect6().
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 31231092
...@@ -1256,7 +1256,10 @@ struct sys_stat_struct { ...@@ -1256,7 +1256,10 @@ struct sys_stat_struct {
* - the arguments are cast to long and assigned into the target * - the arguments are cast to long and assigned into the target
* registers which are then simply passed as registers to the asm code, * registers which are then simply passed as registers to the asm code,
* so that we don't have to experience issues with register constraints. * so that we don't have to experience issues with register constraints.
*
* On riscv, select() is not implemented so we have to use pselect6().
*/ */
#define __ARCH_WANT_SYS_PSELECT6
#define my_syscall0(num) \ #define my_syscall0(num) \
({ \ ({ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment