Commit 4f8e40a8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Same here

parent 37c50bf0
......@@ -507,7 +507,11 @@ static inline int __vlc_cond_wait( const char * psz_file, int i_line,
/* In debug mode, timeout */
struct timespec timeout;
clock_gettime( CLOCK_MONOTONIC, &timeout );
# if (_POSIX_CLOCK_MONOTONIC - 0 >= 0)
if( clock_gettime( CLOCK_MONOTONIC, &timeout ) )
# endif
clock_gettime( CLOCK_REALTIME, &timeout );
timeout.tv_sec += THREAD_COND_TIMEOUT;
i_result = pthread_cond_timedwait( &p_condvar->cond, &p_mutex->mutex,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment