From 1440196fa0ce484e0f3a06f13555d651f7e62c3b Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Tue, 21 Feb 2023 11:00:17 +0100 Subject: [PATCH] (GX/GEKKO/RTHREADS) scond_wait_timeout - correct Gekko codepath --- libretro-common/rthreads/rthreads.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libretro-common/rthreads/rthreads.c b/libretro-common/rthreads/rthreads.c index b3c9ef2c04..f1f4f6bb67 100644 --- a/libretro-common/rthreads/rthreads.c +++ b/libretro-common/rthreads/rthreads.c @@ -855,10 +855,9 @@ bool scond_wait_timeout(scond_t *cond, slock_t *lock, int64_t timeout_us) _ftime64_s(&now); #elif defined(GEKKO) /* Avoid gettimeofday due to it being reported to be broken */ - struct timeval tm; const uint64_t tickms = gettime() / TB_TIMER_CLOCK; now.tv_sec = tickms / 1000; - now.tv_nsec = tickms * 1000; + now.tv_nsec = tickms * 1000; #else clock_gettime(CLOCK_REALTIME, &now); #endif