diff options
author | 2022-02-27 23:20:10 -0800 | |
---|---|---|
committer | 2022-02-27 23:20:10 -0800 | |
commit | 50560e169ca39c0b4ec163cb32897baf7620aa69 (patch) | |
tree | 83eb721bfd4a0318874c1f69d254a4fd9446512b /src/fs.zig | |
parent | 36c249e9c1fc6e0000d23ae0055eed54a5437c74 (diff) | |
download | bun-50560e169ca39c0b4ec163cb32897baf7620aa69.tar.gz bun-50560e169ca39c0b4ec163cb32897baf7620aa69.tar.zst bun-50560e169ca39c0b4ec163cb32897baf7620aa69.zip |
WASM
Diffstat (limited to 'src/fs.zig')
-rw-r--r-- | src/fs.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs.zig b/src/fs.zig index 7218f7987..98874ff11 100644 --- a/src/fs.zig +++ b/src/fs.zig @@ -80,7 +80,7 @@ pub const FileSystem = struct { top_level_dir: string = "/", // used on subsequent updates - top_level_dir_buf: [std.fs.MAX_PATH_BYTES]u8 = undefined, + top_level_dir_buf: [_global.MAX_PATH_BYTES]u8 = undefined, fs: Implementation, @@ -503,7 +503,7 @@ pub const FileSystem = struct { file_limit: usize = 32, file_quota: usize = 32, - pub var tmpdir_buf: [std.fs.MAX_PATH_BYTES]u8 = undefined; + pub var tmpdir_buf: [_global.MAX_PATH_BYTES]u8 = undefined; const PLATFORM_TMP_DIR: string = switch (@import("builtin").target.os.tag) { .windows => "TMPDIR", @@ -927,7 +927,7 @@ pub const FileSystem = struct { pub fn kind(fs: *RealFS, _dir: string, base: string, existing_fd: StoredFileDescriptorType) !Entry.Cache { var dir = _dir; var combo = [2]string{ dir, base }; - var outpath: [std.fs.MAX_PATH_BYTES]u8 = undefined; + var outpath: [_global.MAX_PATH_BYTES]u8 = undefined; var entry_path = path_handler.joinAbsStringBuf(fs.cwd, &outpath, &combo, .auto); outpath[entry_path.len + 1] = 0; |