From 830b132cd4cb883e6206074c3effa1bd21281f7b Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 4 Dec 2024 07:01:40 +0300
Subject: [PATCH] SDL_asyncio_liburing.c: replace __kernel_time64_t use with
SDL's Sint64
---
src/file/io_uring/SDL_asyncio_liburing.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/file/io_uring/SDL_asyncio_liburing.c b/src/file/io_uring/SDL_asyncio_liburing.c
index 65d7c76d17f30..7d71d44d75106 100644
--- a/src/file/io_uring/SDL_asyncio_liburing.c
+++ b/src/file/io_uring/SDL_asyncio_liburing.c
@@ -283,7 +283,7 @@ static SDL_AsyncIOTask *liburing_asyncioqueue_wait_results(void *userdata, Sint3
if (timeoutMS < 0) {
liburing.io_uring_wait_cqe(&queuedata->ring, &cqe);
} else {
- struct __kernel_timespec ts = { (__kernel_time64_t) timeoutMS / SDL_MS_PER_SECOND, (long long) SDL_MS_TO_NS(timeoutMS % SDL_MS_PER_SECOND) };
+ struct __kernel_timespec ts = { (Sint64) timeoutMS / SDL_MS_PER_SECOND, (Sint64) SDL_MS_TO_NS(timeoutMS % SDL_MS_PER_SECOND) };
liburing.io_uring_wait_cqe_timeout(&queuedata->ring, &cqe, &ts);
}
SDL_AddAtomicInt(&queuedata->num_waiting, -1);