summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2022-02-07 17:23:13 +0100
committerPaul E. McKenney <paulmck@kernel.org>2022-04-11 17:14:33 -0700
commit9c2970fbb425cca0256ecf0f96490e4f253fda24 (patch)
treef6d98ccaccc4dcd86c81e7b63555f67ea5bb8d38
parent3123109284176b1532874591f7c81f3837bbdc17 (diff)
tools/nolibc: use pselect6 on RISCV
This arch doesn't provide the old-style select() syscall, we have to use pselect6(). Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rw-r--r--tools/include/nolibc/nolibc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/include/nolibc/nolibc.h b/tools/include/nolibc/nolibc.h
index c1c285fe494a..ad23712f9cb5 100644
--- a/tools/include/nolibc/nolibc.h
+++ b/tools/include/nolibc/nolibc.h
@@ -1256,7 +1256,10 @@ struct sys_stat_struct {
* - the arguments are cast to long and assigned into the target
* registers which are then simply passed as registers to the asm code,
* 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) \
({ \