View | Details | Raw Unified | Return to bug 225415 | Differences between
and this patch

Collapse All | Expand All

(-)src/util/os_time.c (-2 / +2 lines)
Lines 55-61 Link Here
55
int64_t
55
int64_t
56
os_time_get_nano(void)
56
os_time_get_nano(void)
57
{
57
{
58
#if defined(PIPE_OS_LINUX)
58
#if defined(PIPE_OS_BSD) || defined(PIPE_OS_LINUX)
59
59
60
   struct timespec tv;
60
   struct timespec tv;
61
   clock_gettime(CLOCK_MONOTONIC, &tv);
61
   clock_gettime(CLOCK_MONOTONIC, &tv);
Lines 95-101 os_time_get_nano(void) Link Here
95
void
95
void
96
os_time_sleep(int64_t usecs)
96
os_time_sleep(int64_t usecs)
97
{
97
{
98
#if defined(PIPE_OS_LINUX)
98
#if defined(PIPE_OS_BSD) || defined(PIPE_OS_LINUX)
99
   struct timespec time;
99
   struct timespec time;
100
   time.tv_sec = usecs / 1000000;
100
   time.tv_sec = usecs / 1000000;
101
   time.tv_nsec = (usecs % 1000000) * 1000;
101
   time.tv_nsec = (usecs % 1000000) * 1000;

Return to bug 225415