Skip to content

Commit

Permalink
aio: fix compilation on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Feb 1, 2025
1 parent 773682e commit 0335a98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aio/ops.zig
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,10 @@ pub const UnlinkAt = struct {
/// std.fs.Dir.makeDir
pub const MkDirAt = struct {
pub const Error = std.fs.Dir.MakeError || SharedError;
pub const default_mode = if (std.posix.mode_t == u0) 0 else std.fs.Dir.default_mode;
dir: std.fs.Dir,
path: [*:0]const u8,
mode: std.posix.mode_t = std.fs.Dir.default_mode,
mode: std.posix.mode_t = default_mode,
out_id: ?*Id = null,
out_error: ?*Error = null,
userdata: usize = 0,
Expand Down

0 comments on commit 0335a98

Please sign in to comment.