util/u_thread: don't restrict u_thread_get_time_nano() to __linux__
authorJonathan Gray <jsg@jsg.id.au>
Sat, 30 Nov 2019 15:17:36 +0000 (02:17 +1100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 2 Dec 2019 22:23:49 +0000 (17:23 -0500)
commit4913215d145e61c35b90fa3ed1dcad76a51d48e0
tree013449177a8154eb2eab92e7a581c7275bd225fd
parentc91997b6c4395831a8de2b84e6ea2ff981a00e4b
util/u_thread: don't restrict u_thread_get_time_nano() to __linux__

pthread_getcpuclockid() and clock_gettime() are also available on at least
OpenBSD, FreeBSD, NetBSD, DragonFly, Cygwin.

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/util/u_thread.h