diff options
Diffstat (limited to 'absl/synchronization/internal/sem_waiter.cc')
-rw-r--r-- | absl/synchronization/internal/sem_waiter.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/absl/synchronization/internal/sem_waiter.cc b/absl/synchronization/internal/sem_waiter.cc index 3b3849bf..d62dbdc7 100644 --- a/absl/synchronization/internal/sem_waiter.cc +++ b/absl/synchronization/internal/sem_waiter.cc @@ -46,6 +46,8 @@ SemWaiter::SemWaiter() : wakeups_(0) { #if defined(__GLIBC__) && \ (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 30)) #define ABSL_INTERNAL_HAVE_SEM_CLOCKWAIT 1 +#elif defined(__ANDROID_API__) && __ANDROID_API__ >= 30 +#define ABSL_INTERNAL_HAVE_SEM_CLOCKWAIT 1 #endif // Calls sem_timedwait() or possibly something else like |