Skip to content

Commit 4e67818

Browse files
committed
ios uses kqueue
1 parent 2494978 commit 4e67818

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/backend/kqueue.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ const Timer = struct {
17071707
/// Kevent is either kevent_s or kevent64_s depending on the target platform.
17081708
/// This lets us support both Mac and non-Mac platforms.
17091709
const Kevent = switch (builtin.os.tag) {
1710-
.macos => os.system.kevent64_s,
1710+
.ios, .macos => os.system.kevent64_s,
17111711
else => @compileError("kqueue not supported yet for target OS"),
17121712
};
17131713

Diff for: src/main.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub const Backend = enum {
3737
pub fn default() Backend {
3838
return @as(?Backend, switch (builtin.os.tag) {
3939
.linux => .io_uring,
40-
.macos => .kqueue,
40+
.ios, .macos => .kqueue,
4141
.wasi => .wasi_poll,
4242
.windows => .iocp,
4343
else => null,

0 commit comments

Comments
 (0)