Skip to content

Commit

Permalink
ci: fix IORING_ASYNC_CANCEL_ALL undeclared
Browse files Browse the repository at this point in the history
../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
  • Loading branch information
e2dk4r committed Oct 18, 2024
1 parent b4a97b0 commit 38b8428
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
#include <sys/mman.h>
#include <unistd.h>

// 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)) { \
Expand Down

0 comments on commit 38b8428

Please sign in to comment.