Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls.
(aarch64 kernels don't have these system calls.)
Change-Id: I6f64075aa412f71520f2df71c3d69b647f91c1ca
diff --git a/libc/bionic/pthread.c b/libc/bionic/pthread.c
index 7081445..4a4676a 100644
--- a/libc/bionic/pthread.c
+++ b/libc/bionic/pthread.c
@@ -1176,13 +1176,10 @@
int pthread_cond_timeout_np(pthread_cond_t *cond,
pthread_mutex_t * mutex,
- unsigned msecs)
+ unsigned ms)
{
struct timespec ts;
-
- ts.tv_sec = msecs / 1000;
- ts.tv_nsec = (msecs % 1000) * 1000000;
-
+ timespec_from_ms(ts, ms);
return __pthread_cond_timedwait_relative(cond, mutex, &ts);
}