summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/auxiliary/os/os_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/os/os_time.c')
-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);