Fix build on riscv32 (#675)
This commit is contained in:
parent
62cf6a7041
commit
3f347c4627
3 changed files with 21 additions and 0 deletions
|
|
@ -86,6 +86,14 @@ static void MaybeBecomeIdle() {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__NR_futex_time64) && !defined(SYS_futex_time64)
|
||||
#define SYS_futex_time64 __NR_futex_time64
|
||||
#endif
|
||||
|
||||
#if defined(SYS_futex_time64) && !defined(SYS_futex)
|
||||
#define SYS_futex SYS_futex_time64
|
||||
#endif
|
||||
|
||||
class Futex {
|
||||
public:
|
||||
static int WaitUntil(std::atomic<int32_t> *v, int32_t val,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue