Changeset 00a75a03dbf09efddb26f75528075af009604e48

Show
Ignore:
Timestamp:
19/12/07 21:46:45 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1198097205 +0000
git-parent:

[23eb4547791a903f1dff8004ffc01db1cc4c1699]

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

Work-around for overaging POSIX systems

Files:

Legend:

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

    r23eb454 r00a75a0  
    6868#endif 
    6969 
    70 #if (!defined (_POSIX_CLOCK_SELECTION)) || (_POSIX_CLOCK_SELECTION < 0) 
     70#if !defined (_POSIX_CLOCK_SELECTION) 
     71#  define _POSIX_CLOCK_SELECTION (-1) 
     72#endif 
     73 
     74# if (_POSIX_CLOCK_SELECTION < 0) 
    7175/* 
    7276 * We cannot use the monotonic clock is clock selection is not available, 
  • src/misc/threads.c

    rbec377a r00a75a0  
    485485        return ret; 
    486486 
    487 # if defined (_POSIX_CLOCK_SELECTION) && (_POSIX_CLOCK_SELECTION >= 0) 
     487# if !defined (_POSIX_CLOCK_SELECTION) 
     488   /* Fairly outdated POSIX support (that was defined in 2001) */ 
     489#  define _POSIX_CLOCK_SELECTION (-1) 
     490# endif 
     491# if (_POSIX_CLOCK_SELECTION >= 0) 
    488492    /* NOTE: This must be the same clock as the one in mtime.c */ 
    489493    pthread_condattr_setclock (&attr, CLOCK_MONOTONIC);