diff options
Diffstat (limited to 'src/deps/uws.zig')
-rw-r--r-- | src/deps/uws.zig | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/deps/uws.zig b/src/deps/uws.zig index 3f1fb276c..88c649747 100644 --- a/src/deps/uws.zig +++ b/src/deps/uws.zig @@ -748,7 +748,14 @@ pub const Loop = extern struct { /// The list of ready polls ready_polls: [1024]EventType align(16), - const EventType = if (Environment.isLinux) std.os.linux.epoll_event else if (Environment.isMac) std.os.system.kevent64_s; + const EventType = switch (Environment.os) { + .linux => std.os.linux.epoll_event, + .mac => std.os.system.kevent64_s, + // TODO: + .windows => *anyopaque, + else => @compileError("Unsupported OS"), + }; + const log = bun.Output.scoped(.Loop, false); pub const InternalLoopData = extern struct { |