mirror of
https://git.freebsd.org/ports.git
synced 2025-06-30 09:00:33 -04:00
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
13 lines
360 B
C
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;
|