[vlc-devel] [PATCH v4 01/18] android/thread: Remove monotonic clock checks

Julian Scheel julian at jusst.de
Wed Mar 22 09:58:49 CET 2017


From: Dennis Hamester <dennis.hamester at startmail.com>

These checks are unnecessary since 6f3e18d534, because the calls to
pthread_condattr_setclock and pthread_cond_timedwait_monotonic_np have
been removed.
---
 configure.ac         | 2 +-
 src/android/thread.c | 4 ----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 71f19c43f9..3ba74f3ee8 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 af74a64292..fcffd7a827 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
-- 
2.12.0



More information about the vlc-devel mailing list