From 680e7e93732401e310cbcf597e4a8c1d6079e607 Mon Sep 17 00:00:00 2001 From: Willow Barraco Date: Sat, 29 Jul 2023 14:15:27 +0200 Subject: [PATCH] Add an explicit non blocking fflags value Now we can not let fflags unspecified and expect for it to works. So we add a NONE = 0 value to fix the compilation problem. Signed-off-by: Willow Barraco --- ev/+linux/file.ha | 2 ++ diff --git a/ev/+linux/file.ha b/ev/+linux/file.ha index 73204fe9b58b4b6575910c9b5529065e917145af..656f382ed352673e5917e4089c43091849e8deca 100644 --- a/ev/+linux/file.ha +++ b/ev/+linux/file.ha @@ -23,6 +23,7 @@ RECV = 10 << 16, }; export type fflags = enum uint { + NONE = 0, BLOCKING = 1 << 31, }; @@ -61,6 +62,7 @@ loop: *loop, fd: io::file, ) (*file | errors::error) = { const file = alloc(file { + flags = fflags::NONE, fd = fd, ev = loop, op = op::NONE, -- 2.48.1