mirror of
https://github.com/thead-yocto-mirror/meta-riscv
synced 2026-09-18 05:02:38 +02:00
14 lines
312 B
Diff
14 lines
312 B
Diff
--- a/src/xshmfence_futex.h
|
|
+++ b/src/xshmfence_futex.h
|
|
@@ -47,6 +47,10 @@ static inline int futex_wait(int32_t *ad
|
|
|
|
#else
|
|
|
|
+#if !defined(__NR_futex) && defined(__riscv) && __riscv_xlen == 32
|
|
+# define __NR_futex __NR_futex_time64
|
|
+#endif
|
|
+
|
|
#include <stdint.h>
|
|
#include <values.h>
|
|
#include <linux/futex.h>
|