Skip to content

Commit

Permalink
ios uses kqueue
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jan 14, 2024
1 parent 2494978 commit 4e67818
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/kqueue.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ const Timer = struct {
/// Kevent is either kevent_s or kevent64_s depending on the target platform.
/// This lets us support both Mac and non-Mac platforms.
const Kevent = switch (builtin.os.tag) {
.macos => os.system.kevent64_s,
.ios, .macos => os.system.kevent64_s,
else => @compileError("kqueue not supported yet for target OS"),
};

Expand Down
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub const Backend = enum {
pub fn default() Backend {
return @as(?Backend, switch (builtin.os.tag) {
.linux => .io_uring,
.macos => .kqueue,
.ios, .macos => .kqueue,
.wasi => .wasi_poll,
.windows => .iocp,
else => null,
Expand Down

0 comments on commit 4e67818

Please sign in to comment.