aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os.zig
diff options
context:
space:
mode:
authorAl Hoang <3811822-hoanga@users.noreply.gitlab.com>2020-12-28 23:00:31 -0600
committerAndrew Kelley <andrew@ziglang.org>2021-02-25 16:41:42 -0700
commit6b0372229da4fa4cf32f0ee1eb079f530554b094 (patch)
treedf08afc15bbe6626a20c4ffd0609a51df6ef3425 /lib/std/os.zig
parent025635c3f80912f0f967b57e6d22fe42e94b64f0 (diff)
downloadzig-6b0372229da4fa4cf32f0ee1eb079f530554b094.tar.gz
zig-6b0372229da4fa4cf32f0ee1eb079f530554b094.zip
initial support for haiku continue clean up
* remove unused definitions * setup os specific blocks
Diffstat (limited to 'lib/std/os.zig')
-rw-r--r--lib/std/os.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig
index b7a471ef2c..a9578e530e 100644
--- a/lib/std/os.zig
+++ b/lib/std/os.zig
@@ -53,6 +53,7 @@ test {
_ = uefi;
_ = wasi;
_ = windows;
+ _ = haiku;
_ = @import("os/test.zig");
}
@@ -601,7 +602,7 @@ pub fn ftruncate(fd: fd_t, length: u64) TruncateError!void {
/// 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 {
const have_pread_but_not_preadv = switch (std.Target.current.os.tag) {
- .windows, .macos, .ios, .watchos, .tvos => true,
+ .windows, .macos, .ios, .watchos, .tvos, .haiku => true,
else => false,
};
if (have_pread_but_not_preadv) {