fix x86_64-linux-gnu build

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-03-08 23:44:33 -07:00
parent a433937d39
commit b7fb2057f7
3 changed files with 5 additions and 2 deletions

View file

@ -132,7 +132,7 @@ pub const Context = struct {
};
errdefer std.os.inotify_rm_watch(notify_fd, notify_wd);
const notify_pipe_fd = std.os.pipe2(std.os.O.NONBLOCK) catch |err| switch (err) {
const notify_pipe_fd = std.os.pipe2(.{ .NONBLOCK = true }) catch |err| switch (err) {
error.ProcessFdQuotaExceeded,
error.SystemFdQuotaExceeded,
=> return error.SystemResources,