From cb591285d74d9333576b746d41f8c6288701fb96 Mon Sep 17 00:00:00 2001 From: Joran Dirk Greef Date: Sat, 19 Sep 2020 16:20:21 +0200 Subject: [PATCH] Use linux.IORING_SQ_CQ_OVERFLOW --- lib/std/os/linux/io_uring.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os/linux/io_uring.zig b/lib/std/os/linux/io_uring.zig index 409c954d6f..6f6c254b38 100644 --- a/lib/std/os/linux/io_uring.zig +++ b/lib/std/os/linux/io_uring.zig @@ -279,7 +279,7 @@ pub const IO_Uring = struct { // Matches the implementation of cq_ring_needs_flush() in liburing. fn cq_ring_needs_flush(self: *IO_Uring) bool { - return (@atomicLoad(u32, self.sq.flags, .Unordered) & IORING_SQ_CQ_OVERFLOW) != 0; + return (@atomicLoad(u32, self.sq.flags, .Unordered) & linux.IORING_SQ_CQ_OVERFLOW) != 0; } /// For advanced use cases only that implement custom completion queue methods.