diff options
author | 2022-09-22 03:25:29 -0700 | |
---|---|---|
committer | 2022-09-22 03:25:29 -0700 | |
commit | e14a3af491ece8d1b0309e76ae3022b4fad91f16 (patch) | |
tree | 9e8bb36d7baf894660d8fcbc4410e896f77af891 | |
parent | 0968fd339f252e056b83f1591951ee6655652f9b (diff) | |
download | bun-e14a3af491ece8d1b0309e76ae3022b4fad91f16.tar.gz bun-e14a3af491ece8d1b0309e76ae3022b4fad91f16.tar.zst bun-e14a3af491ece8d1b0309e76ae3022b4fad91f16.zip |
Fix linux build
-rw-r--r-- | src/bun.js/event_loop.zig | 2 | ||||
-rw-r--r-- | src/io/io_linux.zig | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/bun.js/event_loop.zig b/src/bun.js/event_loop.zig index d8f0338ed..fc072d95e 100644 --- a/src/bun.js/event_loop.zig +++ b/src/bun.js/event_loop.zig @@ -514,6 +514,8 @@ pub const Poller = struct { this.loop.?.num_polls += 1; this.loop.?.active += 1; + + return JSC.Maybe(void).success; } else if (comptime Environment.isMac) { var changelist = std.mem.zeroes([2]std.os.system.kevent64_s); changelist[0] = switch (flag) { diff --git a/src/io/io_linux.zig b/src/io/io_linux.zig index 00cc0c03e..323dd03f9 100644 --- a/src/io/io_linux.zig +++ b/src/io/io_linux.zig @@ -988,7 +988,7 @@ pub const Waker = struct { fd: os.fd_t, pub fn init(allocator: std.mem.Allocator) !Waker { - return try initWithFileDescriptor(allocator, try std.os.eventfd(0, 0)); + return initWithFileDescriptor(allocator, @intCast(os.fd_t, try std.os.eventfd(0, 0))); } pub fn initWithFileDescriptor(_: std.mem.Allocator, fd: os.fd_t) Waker { |