Changeset 58bae5695fb6b5504b7fd30f1237969aee49ae79

Show
Ignore:
Timestamp:
24/05/06 22:39:21 (2 years ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1148503161 +0000
git-parent:

[402b2ed2f093bdf8d22e691a6d5b893623decece]

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

Fix monotonic clock POSIX option detection

Files:

Legend:

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

    r402b2ed r58bae56  
    191191    struct timespec ts; 
    192192 
    193 # ifdef _POSIX_MONOTONIC_CLOCK 
     193# if (_POSIX_MONOTONIC_CLOCK >= 0) 
    194194    /* Try to use POSIX monotonic clock if available */ 
    195195    if( clock_gettime( CLOCK_MONOTONIC, &ts ) ) 
     
    258258    ts.tv_nsec = d.rem * 1000; 
    259259 
    260 # ifdef _POSIX_MONOTONIC_CLOCK 
     260# if (_POSIX_MONOTONIC_CLOCK >= 0) 
    261261    if( clock_nanosleep( CLOCK_MONOTONIC, 0 /*TIMER_ABSTIME*/, &ts, NULL ) ) 
    262262# endif