]> git.sesse.net Git - vlc/blobdiff - include/vlc_threads_funcs.h
Attempt to fix MacOS build
[vlc] / include / vlc_threads_funcs.h
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 );