[RFC,v3,08/23] RISC-V: define __NR_futex as __NR_futex_time64 for 32-bit
Commit Message
The futex syscall isn't avaliable on R32 so let's define it to
be futex_time64 instead.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
sysdeps/unix/sysv/linux/riscv/sysdep.h | 9 +++++++++
1 file changed, 9 insertions(+)
@@ -116,6 +116,15 @@
#include <sysdeps/unix/sysdep.h>
+#if __riscv_xlen == 32
+/* Define the __NR_futex as __NR_futex64 as RV32 doesn't have a
+ * __NR_futex syscall.
+ */
+# ifndef __NR_futex
+# define __NR_futex __NR_futex_time64
+# endif
+#endif
+
#undef SYS_ify
#define SYS_ify(syscall_name) __NR_##syscall_name