diff options
author | 2020-05-18 10:23:50 -0700 | |
---|---|---|
committer | 2020-05-18 13:23:50 -0400 | |
commit | 3f347c46272886a099852a4cd303ecf37a054de8 (patch) | |
tree | 5f95c9cc76267e5ae42890e72b990fb20a7b4368 /absl/synchronization/internal | |
parent | 62cf6a70414e15b356ec4f712ca8758133674f28 (diff) |
Fix build on riscv32 (#675)
Diffstat (limited to 'absl/synchronization/internal')
-rw-r--r-- | absl/synchronization/internal/waiter.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/absl/synchronization/internal/waiter.cc b/absl/synchronization/internal/waiter.cc index 2949f5a8..b6150b9b 100644 --- a/absl/synchronization/internal/waiter.cc +++ b/absl/synchronization/internal/waiter.cc @@ -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, |