util: use clock_gettime() on PIPE_OS_BSD
authorJonathan Gray <jsg@jsg.id.au>
Wed, 28 Feb 2018 10:19:19 +0000 (21:19 +1100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 1 Mar 2018 18:44:38 +0000 (18:44 +0000)
commit7bea40e56652a1ded4374d92fb340b454fbac475
tree0a036942b46f22d8673b23f677e038ef19ee7330
parent4420d8866c2892f6776d10de60fd6656376e1dd4
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 <jsg@jsg.id.au>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/util/os_time.c