From 38b842818351580045696ca8da2616c7bca81f4e Mon Sep 17 00:00:00 2001 From: e2dk4r <43293320+e2dk4r@users.noreply.github.com> Date: Fri, 18 Oct 2024 15:11:47 +0300 Subject: [PATCH] ci: fix IORING_ASYNC_CANCEL_ALL undeclared MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../src/main.c: In function ‘main’: ../src/main.c:703:43: error: ‘IORING_ASYNC_CANCEL_ALL’ undeclared (first use in this function); did you mean ‘IORING_OP_ASYNC_CANCEL’? 703 | io_uring_prep_cancel(sqe, &idledOp, IORING_ASYNC_CANCEL_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~ | IORING_OP_ASYNC_CANCEL --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.c b/src/main.c index ea89139..a44eed9 100644 --- a/src/main.c +++ b/src/main.c @@ -13,6 +13,11 @@ #include #include +// NOTE: CI fix +#ifndef IORING_ASYNC_CANCEL_ALL +#define IORING_ASYNC_CANCEL_ALL (1U << 0) +#endif + #if GAMEPAD_IDLE_INHIBIT_DEBUG #define assert(x) \ if (!(x)) { \