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
This commit is contained in:
Makoto Kato 2016-07-27 15:00:59 +09:00
Родитель 92eed83142
Коммит 4fbb5713c3
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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.h>],
[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