aboutsummaryrefslogtreecommitdiff
path: root/lib/std/std.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2024-01-30 23:11:52 +0200
committerVeikka Tuominen <git@vexu.eu>2024-02-01 15:22:36 +0200
commit8d11ade6a769fe498ed20cdb4f80c6acf4ca91de (patch)
tree3519793f8db0e05d0b9a4239a8b440381fbb1501 /lib/std/std.zig
parentde9606bed51ed59530b5f9f98609aded14398b98 (diff)
downloadzig-8d11ade6a769fe498ed20cdb4f80c6acf4ca91de.tar.gz
zig-8d11ade6a769fe498ed20cdb4f80c6acf4ca91de.zip
std: change return type of `wasiCwd`
`fd_t` is not declared on freestanding so returning a `Dir` causes an error.
Diffstat (limited to 'lib/std/std.zig')
-rw-r--r--lib/std/std.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/std.zig b/lib/std/std.zig
index cbf48e2f11..37158c29b6 100644
--- a/lib/std/std.zig
+++ b/lib/std/std.zig
@@ -203,7 +203,7 @@ pub const Options = struct {
enable_segfault_handler: bool = debug.default_enable_segfault_handler,
/// Function used to implement `std.fs.cwd` for WASI.
- wasiCwd: fn () fs.Dir = fs.defaultWasiCwd,
+ wasiCwd: fn () os.wasi.fd_t = fs.defaultWasiCwd,
/// The current log level.
log_level: log.Level = log.default_level,