From 4fbb5713c3c3bb18df98951398c3490db5b65721 Mon Sep 17 00:00:00 2001 From: Makoto Kato Date: Wed, 27 Jul 2016 15:00:59 +0900 Subject: [PATCH] Bug 1288625 - Part 2. Check pthread_cond_timedwait_monotonic_np. r=glandium Android 64-bit doesn't have pthread_cond_timedwait_monotonic_np. So we need check this function. And although we don't turn on sandbox on Android, same define is used in security/sandbox/chromium/base/synchronization/condition_variable_posix.cc. MozReview-Commit-ID: aeXhNs9Xdj --HG-- extra : rebase_source : 572d45b14e6447352f0c9235a636ff8feb6c8030 --- old-configure.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/old-configure.in b/old-configure.in index 98d305757256..f8c31217aa60 100644 --- a/old-configure.in +++ b/old-configure.in @@ -1687,6 +1687,16 @@ if test "$ac_cv_clock_monotonic" != "no"; then AC_SUBST_LIST(REALTIME_LIBS) fi +AC_CACHE_CHECK(for pthread_cond_timedwait_monotonic_np, + ac_cv_pthread_cond_timedwait_monotonic_np, + AC_TRY_LINK([#include ], + [pthread_cond_timedwait_monotonic_np(0, 0, 0);], + ac_cv_pthread_cond_timewait_monotonic_np=yes, + ac_cv_pthread_cond_timewait_monotonic_np=no)) +if test "$ac_cv_pthread_cond_timewait_monotonic_np" != "no"; then + AC_DEFINE(HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC) +fi + dnl check for wcrtomb/mbrtowc dnl ======================================================================= if test -z "$MACOS_DEPLOYMENT_TARGET" || test "$MACOS_DEPLOYMENT_TARGET" -ge "100300"; then