Changeset feadfb1e87e87c918358543aaee59760432f6350

Show
Ignore:
Timestamp:
09/16/07 09:49:52 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1189928992 +0000
git-parent:

[471bd1e4de2c67e853cf0e8b557a57328acfee14]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1189928992 +0000
Message:

Fix condition variable clock ifdef

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/threads.c

    r649f40a rfeadfb1  
    2929#include "libvlc.h" 
    3030#include <assert.h> 
     31#ifdef HAVE_UNISTD_H 
     32# include <unistd.h> 
     33#endif 
    3134 
    3235#define VLC_THREADS_UNINITIALIZED  0 
     
    465468        return ret; 
    466469 
    467 # if defined (_POSIX_CLOCK_MONOTONIC) && (_POSIX_CLOCK_MONOTONIC >= 0) 
     470# if defined (_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK - 0 >= 0) 
    468471    /* This must be the same clock as the one in mtime.c */ 
    469472    pthread_condattr_setclock (&attr, CLOCK_MONOTONIC);