[vlc-devel] [PATCH] clock_nanosleep() depends on _POSIX_CLOCK_SELECTION
Rafaël Carré
rafael.carre at gmail.com
Wed Aug 31 08:25:26 CEST 2011
---
src/posix/thread.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/posix/thread.c b/src/posix/thread.c
index 9064563..35066a7 100644
--- a/src/posix/thread.c
+++ b/src/posix/thread.c
@@ -968,7 +968,7 @@ mtime_t mdate (void)
*/
void mwait (mtime_t deadline)
{
-#if (_POSIX_TIMERS > 0)
+#if (_POSIX_CLOCK_SELECTION > 0)
vlc_clock_setup ();
/* If the deadline is already elapsed, or within the clock precision,
* do not even bother the system timer. */
@@ -996,7 +996,7 @@ void msleep (mtime_t delay)
struct timespec ts = mtime_to_ts (delay);
vlc_clock_setup ();
-#if (_POSIX_TIMERS > 0)
+#if (_POSIX_CLOCK_SELECTION > 0)
while (clock_nanosleep (vlc_clock_id, 0, &ts, &ts) == EINTR);
#else
--
1.7.5.4
More information about the vlc-devel
mailing list