diff --git a/js/src/threading/posix/ConditionVariable.cpp b/js/src/threading/posix/ConditionVariable.cpp index 6a2e4a246771..84db0501f9fc 100644 --- a/js/src/threading/posix/ConditionVariable.cpp +++ b/js/src/threading/posix/ConditionVariable.cpp @@ -37,7 +37,7 @@ static const clockid_t WhichClock = CLOCK_MONOTONIC; // timespec structure is largely lacking such conveniences. Thankfully, the // utilities available in MFBT make implementing our own quite easy. static void -timespecadd(struct timespec* lhs, struct timespec* rhs, struct timespec* result) +moz_timespecadd(struct timespec* lhs, struct timespec* rhs, struct timespec* result) { // Add nanoseconds. This may wrap, but not above 2 billion. MOZ_RELEASE_ASSERT(lhs->tv_nsec < NanoSecPerSec); @@ -149,7 +149,7 @@ js::ConditionVariable::wait_for(UniqueLock& lock, MOZ_RELEASE_ASSERT(!r); struct timespec abs_ts; - timespecadd(&now_ts, &rel_ts, &abs_ts); + moz_timespecadd(&now_ts, &rel_ts, &abs_ts); r = pthread_cond_timedwait(ptCond, ptMutex, &abs_ts); #else