diff options
author | Jonathan Gray <[email protected]> | 2018-02-28 21:19:19 +1100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-03-01 18:44:38 +0000 |
commit | 7bea40e56652a1ded4374d92fb340b454fbac475 (patch) | |
tree | 0a036942b46f22d8673b23f677e038ef19ee7330 /src/util | |
parent | 4420d8866c2892f6776d10de60fd6656376e1dd4 (diff) |
util: use clock_gettime() on PIPE_OS_BSD
OpenBSD, FreeBSD, NetBSD and DragonFlyBSD all have clock_gettime()
so use it when PIPE_OS_BSD is defined.
Signed-off-by: Jonathan Gray <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/os_time.c | 2 |
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); |