pub const pollfd = switch (native_os)
4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313
pub const pollfd = switch (native_os) { .linux => linux.pollfd, .emscripten => emscripten.pollfd, .windows => ws2_32.pollfd, // https://github.com/SerenityOS/serenity/blob/265764ff2fec038855193296588a887fc322d76a/Kernel/API/POSIX/poll.h#L26-L30 .serenity => extern struct { fd: fd_t, events: c_short, revents: c_short = undefined, }, else => extern struct { fd: fd_t, events: i16, revents: i16 = undefined, }, }