summaryrefslogtreecommitdiffstats
path: root/src/util/os_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/os_time.c')
-rw-r--r--src/util/os_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/os_time.c b/src/util/os_time.c
index 72dc7e49c0e..ac488b2287c 100644
--- a/src/util/os_time.c
+++ b/src/util/os_time.c
@@ -55,7 +55,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);