ports/graphics/mesa-dri/files/patch-src_util_os__time.c
Niclas Zeising ff52187624 graphics/mesa-libs, graphics/mesa-dri: Update to 18.1.0
Update mesa ports to 18.1

Changes:	https://www.mesa3d.org/relnotes/18.1.0.html

PR:		227685
Submitted by:	jbeich
Tested by:	Greg V, Carlos J. Puga Medina
2018-05-30 19:18:01 +00:00

13 lines
360 B
C

- Use monotonic clock for timeouts
--- src/util/os_time.c.orig 2018-04-21 05:48:25 UTC
+++ src/util/os_time.c
@@ -95,7 +95,7 @@ os_time_get_nano(void)
void
os_time_sleep(int64_t usecs)
{
-#if defined(PIPE_OS_LINUX)
+#if defined(HAVE_CLOCK_NANOSLEEP)
struct timespec time;
time.tv_sec = usecs / 1000000;
time.tv_nsec = (usecs % 1000000) * 1000;