[vlc-commits] configure: remove legacy nanosleep header check

Rémi Denis-Courmont git at videolan.org
Sat Oct 29 17:04:47 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 29 18:02:36 2016 +0300| [ee64d24ae2a49580a4e4ec9580900b8f03cd7b7f] | committer: Rémi Denis-Courmont

configure: remove legacy nanosleep header check

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee64d24ae2a49580a4e4ec9580900b8f03cd7b7f
---

 configure.ac       | 1 -
 src/posix/thread.c | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index a316e00..4640c7d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -597,7 +597,6 @@ dnl Check for system libs needed
 need_libc=false
 
 dnl Check for usual libc functions
-AC_CHECK_DECLS([nanosleep],,,[#include <time.h>])
 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_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])
diff --git a/src/posix/thread.c b/src/posix/thread.c
index 4f5f10e..9490683 100644
--- a/src/posix/thread.c
+++ b/src/posix/thread.c
@@ -102,9 +102,6 @@ static pthread_once_t vlc_clock_once = PTHREAD_ONCE_INIT;
 #else /* _POSIX_TIMERS */
 
 # include <sys/time.h> /* gettimeofday() */
-# if defined (HAVE_DECL_NANOSLEEP) && !HAVE_DECL_NANOSLEEP
-int nanosleep (struct timespec *, struct timespec *);
-# endif
 
 # define vlc_clock_setup() (void)0
 # warning Monotonic clock not available. Expect timing issues.



More information about the vlc-commits mailing list