Changeset 58bae5695fb6b5504b7fd30f1237969aee49ae79
- 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
| r402b2ed |
r58bae56 |
|
| 191 | 191 | struct timespec ts; |
|---|
| 192 | 192 | |
|---|
| 193 | | # ifdef _POSIX_MONOTONIC_CLOCK |
|---|
| | 193 | # if (_POSIX_MONOTONIC_CLOCK >= 0) |
|---|
| 194 | 194 | /* Try to use POSIX monotonic clock if available */ |
|---|
| 195 | 195 | if( clock_gettime( CLOCK_MONOTONIC, &ts ) ) |
|---|
| … | … | |
| 258 | 258 | ts.tv_nsec = d.rem * 1000; |
|---|
| 259 | 259 | |
|---|
| 260 | | # ifdef _POSIX_MONOTONIC_CLOCK |
|---|
| | 260 | # if (_POSIX_MONOTONIC_CLOCK >= 0) |
|---|
| 261 | 261 | if( clock_nanosleep( CLOCK_MONOTONIC, 0 /*TIMER_ABSTIME*/, &ts, NULL ) ) |
|---|
| 262 | 262 | # endif |
|---|