Changeset 00a75a03dbf09efddb26f75528075af009604e48
- 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
| r23eb454 |
r00a75a0 |
|
| 68 | 68 | #endif |
|---|
| 69 | 69 | |
|---|
| 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) |
|---|
| 71 | 75 | /* |
|---|
| 72 | 76 | * We cannot use the monotonic clock is clock selection is not available, |
|---|
| rbec377a |
r00a75a0 |
|
| 485 | 485 | return ret; |
|---|
| 486 | 486 | |
|---|
| 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) |
|---|
| 488 | 492 | /* NOTE: This must be the same clock as the one in mtime.c */ |
|---|
| 489 | 493 | pthread_condattr_setclock (&attr, CLOCK_MONOTONIC); |
|---|