From 649f40ae919d7f0a7ac55d5780d82eff7788c4b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 15 Sep 2007 17:24:49 +0000 Subject: [PATCH] Attempt to fix MacOS build --- include/vlc_threads_funcs.h | 2 +- src/misc/threads.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vlc_threads_funcs.h b/include/vlc_threads_funcs.h index 0856692426..9398598679 100644 --- a/include/vlc_threads_funcs.h +++ b/include/vlc_threads_funcs.h @@ -507,7 +507,7 @@ static inline int __vlc_cond_wait( const char * psz_file, int i_line, /* In debug mode, timeout */ struct timespec timeout; -# if (_POSIX_CLOCK_MONOTONIC - 0 >= 0) +# if defined (_POSIX_CLOCK_MONOTONIC) && (_POSIX_CLOCK_MONOTONIC >= 0) if( clock_gettime( CLOCK_MONOTONIC, &timeout ) ) # endif clock_gettime( CLOCK_REALTIME, &timeout ); diff --git a/src/misc/threads.c b/src/misc/threads.c index c12ccfab7d..860e8ff579 100644 --- a/src/misc/threads.c +++ b/src/misc/threads.c @@ -464,7 +464,7 @@ int __vlc_cond_init( vlc_object_t *p_this, vlc_cond_t *p_condvar ) if (ret) return ret; -# if defined (HAVE_CLOCK_NANOSLEEP) && (_POSIX_CLOCK_MONOTONIC - 0 >= 0) +# if defined (_POSIX_CLOCK_MONOTONIC) && (_POSIX_CLOCK_MONOTONIC >= 0) /* This must be the same clock as the one in mtime.c */ pthread_condattr_setclock (&attr, CLOCK_MONOTONIC); # endif -- 2.39.2