[vlc-commits] android/thread: Remove monotonic clock checks
Dennis Hamester
git at videolan.org
Thu Mar 23 17:54:23 CET 2017
vlc | branch: master | Dennis Hamester <dennis.hamester at startmail.com> | Wed Mar 22 09:58:49 2017 +0100| [02bf8ff28a4ce8618cfc3c37de82045e78ecafcb] | committer: Rémi Denis-Courmont
android/thread: Remove monotonic clock checks
These checks are unnecessary since 6f3e18d534, because the calls to
pthread_condattr_setclock and pthread_cond_timedwait_monotonic_np have
been removed.
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=02bf8ff28a4ce8618cfc3c37de82045e78ecafcb
---
configure.ac | 2 +-
src/android/thread.c | 4 ----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index 3436f5a..ad95b40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -588,7 +588,7 @@ dnl Check for system libs needed
need_libc=false
dnl Check for usual libc functions
-AC_CHECK_FUNCS([daemon fcntl flock fstatvfs fork getenv getpwuid_r isatty lstat memalign mkostemp mmap open_memstream openat pread posix_fadvise posix_madvise setlocale stricmp strnicmp strptime tdestroy uselocale pthread_cond_timedwait_monotonic_np pthread_condattr_setclock])
+AC_CHECK_FUNCS([daemon fcntl flock fstatvfs fork getenv getpwuid_r isatty lstat memalign mkostemp mmap open_memstream openat pread posix_fadvise posix_madvise setlocale stricmp strnicmp strptime tdestroy uselocale])
AC_REPLACE_FUNCS([atof atoll dirfd fdopendir ffsll flockfile fsync getdelim getpid lldiv memrchr nrand48 poll posix_memalign recvmsg rewind sendmsg setenv strcasecmp strcasestr strdup strlcpy strndup strnlen strnstr strsep strtof strtok_r strtoll swab tfind timegm timespec_get strverscmp])
AC_REPLACE_FUNCS([gettimeofday])
AC_CHECK_FUNC(fdatasync,,
diff --git a/src/android/thread.c b/src/android/thread.c
index af74a64..fcffd7a 100644
--- a/src/android/thread.c
+++ b/src/android/thread.c
@@ -42,10 +42,6 @@
#include <pthread.h>
#include <sched.h>
-#if !defined(HAVE_PTHREAD_CONDATTR_SETCLOCK) && !defined(HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC_NP)
-#error no pthread monotonic clock support
-#endif
-
/* debug */
#ifndef NDEBUG
More information about the vlc-commits
mailing list