Skip to content

Commit

Permalink
lib.futex: try using FUTEX2_PRIVATE flag for #ifndef
Browse files Browse the repository at this point in the history
  • Loading branch information
YoSTEALTH committed Apr 3, 2024
1 parent 910a5c2 commit f8e817e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/liburing/lib/futex.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ from .type cimport *
# note: Linux 6.7+
# `io_uring` uses `futex2`, not `futex`
cdef extern from '<linux/futex.h>' nogil:
''' #ifndef FUTEX2_SIZE_U8
''' #ifndef FUTEX2_PRIVATE
#include "../include/liburing/compat.h"
#define FUTEX2_PRIVATE
#define FUTEX2_SIZE_U8
#define FUTEX2_SIZE_U16
#define FUTEX2_SIZE_U32
Expand Down

0 comments on commit f8e817e

Please sign in to comment.