aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-25 17:53:26 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-25 17:53:26 -0500
commit659c1bdeeebce7bf32e122be6a728fe727112c56 (patch)
tree774feeeee06ea881be48caf769cd0e96944d5345 /lib/std/os.zig
parentcb38bd0a1436bd18de8ed57c45ffc890c8ddfb78 (diff)
parent0f0d01a0374dd62d55a0fe3eed72b9ec009af410 (diff)
downloadzig-659c1bdeeebce7bf32e122be6a728fe727112c56.tar.gz
zig-659c1bdeeebce7bf32e122be6a728fe727112c56.zip
Merge branch 'wasi-run-tests' of https://github.com/fengb/zig into fengb-wasi-run-tests
Diffstat (limited to 'lib/std/os.zig')
-rw-r--r--lib/std/os.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig
index 7fcdb7f3ff..a616fbc49f 100644
--- a/lib/std/os.zig
+++ b/lib/std/os.zig
@@ -1527,7 +1527,7 @@ pub fn isatty(handle: fd_t) bool {
return system.isatty(handle) != 0;
}
if (builtin.os == .wasi) {
- @compileError("TODO implement std.os.isatty for WASI");
+ return system.isatty(handle);
}
if (builtin.os == .linux) {
var wsz: linux.winsize = undefined;