]> git.sesse.net Git - vlc/commitdiff
Attempt to fix MacOS build
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 15 Sep 2007 17:24:49 +0000 (17:24 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 15 Sep 2007 17:24:49 +0000 (17:24 +0000)
include/vlc_threads_funcs.h
src/misc/threads.c

index 0856692426891f0ee70652d6f5b5190d030cc455..9398598679ef3de2b25ccda6519f1966ac6b558e 100644 (file)
@@ -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 );
index c12ccfab7d48b60ce152506445cd84f65d3b67f5..860e8ff579c9d4c7698b614fc6a827312aeaa971 100644 (file)
@@ -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