util: include sys/time.h for timespec functions
authorJonathan Gray <jsg@jsg.id.au>
Tue, 15 Nov 2022 04:20:57 +0000 (15:20 +1100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 16 Nov 2022 19:09:30 +0000 (19:09 +0000)
commitfe851d7759fca4c61245b142bb90dd561ae818f9
tree387469ffe98c94c273b0f55ca6e5223a6cee59d5
parentfb781bfb0a5a401b5210d613479bbdfb90e94790
util: include sys/time.h for timespec functions

When the futex code moved it removed an include which broke the build
on OpenBSD.

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: 095dfc6caa2 ("util: Move the implementation of futex_wake and futex_wait from futex.h to futex.c")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19735>
src/util/futex.c