diff --git a/lib/std/Progress.zig b/lib/std/Progress.zig index 2806c1a09c2f29f21e485f2b6f74279752348ff4..8b741187e75248625193ebd66dd56fe0b621556a 100644 --- a/lib/std/Progress.zig +++ b/lib/std/Progress.zig @@ -1548,6 +1548,7 @@ const have_sigwinch = switch (builtin.os.tag) { .visionos, .dragonfly, .freebsd, + .serenity, => true, else => false, diff --git a/lib/std/heap.zig b/lib/std/heap.zig index 51e4fe44a2ca4583081a06209c8776d7546c51ac..a39cf5e1cb92f8ea81a5af1315b4116f0083f25c 100644 --- a/lib/std/heap.zig +++ b/lib/std/heap.zig @@ -146,7 +146,7 @@ const CAllocator = struct { else {}; pub const supports_posix_memalign = switch (builtin.os.tag) { - .dragonfly, .netbsd, .freebsd, .solaris, .openbsd, .linux, .macos, .ios, .tvos, .watchos, .visionos => true, + .dragonfly, .netbsd, .freebsd, .solaris, .openbsd, .linux, .macos, .ios, .tvos, .watchos, .visionos, .serenity => true, else => false, }; diff --git a/lib/std/posix.zig b/lib/std/posix.zig index e10023f6b1901a3a1bc8ab24118790aa009adcdd..fefb57de1c86212a0ca6cdb6727fd01656492193 100644 --- a/lib/std/posix.zig +++ b/lib/std/posix.zig @@ -1129,8 +1129,9 @@ pub fn ftruncate(fd: fd_t, length: u64) TruncateError!void { /// * Windows /// On these systems, the read races with concurrent writes to the same file descriptor. pub fn preadv(fd: fd_t, iov: []const iovec, offset: u64) PReadError!usize { + // NOTE: serenity does not have preadv but it *does* have pwritev. const have_pread_but_not_preadv = switch (native_os) { - .windows, .macos, .ios, .watchos, .tvos, .visionos, .haiku => true, + .windows, .macos, .ios, .watchos, .tvos, .visionos, .haiku, .serenity => true, else => false, }; if (have_pread_but_not_preadv) { diff --git a/lib/std/start.zig b/lib/std/start.zig index f889885c846e1214bdcbfc84692ee4fe642c02ea..30543ead8a65ab0049fb74fa6be85d923a9af14b 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -699,6 +699,7 @@ fn maybeIgnoreSigpipe() void { .visionos, .dragonfly, .freebsd, + .serenity, => true, else => false,