summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2018-03-02 05:25:18 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2018-03-02 05:25:18 +0000
commitbdd7f49cf10dd2ba74806000710d7bdec5cbdd0f (patch)
treeea61c2f713ba8e7c35b4074961ad3de238eb36f9 /lib/mesa/src/gallium
parent4f1066ae72f103a574895b48e67fef08530cca82 (diff)
use clock_gettime() path on PIPE_OS_BSD in os_time_get_nano()
committed upstream as 7bea40e56652a1ded4374d92fb340b454fbac475 clock_nanosleep() isn't available yet so the usleep() path stays for os_time_sleep()
Diffstat (limited to 'lib/mesa/src/gallium')
-rw-r--r--lib/mesa/src/gallium/auxiliary/os/os_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/os/os_time.c b/lib/mesa/src/gallium/auxiliary/os/os_time.c
index e16913903..245f87c31 100644
--- a/lib/mesa/src/gallium/auxiliary/os/os_time.c
+++ b/lib/mesa/src/gallium/auxiliary/os/os_time.c
@@ -53,7 +53,7 @@
int64_t
os_time_get_nano(void)
{
-#if defined(PIPE_OS_LINUX)
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD)
struct timespec tv;
clock_gettime(CLOCK_MONOTONIC, &tv);