int nanosleep (struct timespec *, struct timespec *);
# endif
+# define vlc_clock_setup() (void)0
#endif /* _POSIX_TIMERS */
/**
vlc_clock_setup ();
if (unlikely(pthread_condattr_init (&attr)))
abort ();
+#if (_POSIX_CLOCK_SELECTION > 0)
pthread_condattr_setclock (&attr, vlc_clock_id);
-
+#endif
if (unlikely(pthread_cond_init (p_condvar, &attr)))
abort ();
pthread_condattr_destroy (&attr);
if (unlikely(gettimeofday (&tv, NULL) != 0))
abort ();
- return (INT64_C(1000000) * tv.tv_sec) + tv.tv_nsec;
+ return (INT64_C(1000000) * tv.tv_sec) + tv.tv_usec;
#endif
}