diff options
| author | LeRoyce Pearson <leroycepearson@geemili.xyz> | 2020-03-08 18:31:18 -0600 |
|---|---|---|
| committer | LeRoyce Pearson <leroycepearson@geemili.xyz> | 2020-03-08 18:31:18 -0600 |
| commit | cb84875eed42b4721de5b2cc356c4a6719eb0516 (patch) | |
| tree | d048cc3d5a10d26fbe5eac162af02a5edd733d1a /lib/std/fs | |
| parent | e1c1ca99031a76b44ba1bdce0d10acb4513af8d6 (diff) | |
| download | zig-cb84875eed42b4721de5b2cc356c4a6719eb0516.tar.gz zig-cb84875eed42b4721de5b2cc356c4a6719eb0516.zip | |
Define ino_t for systems not yet defining it
Also, use ino_t instead of u64 in fs.File.INode
Diffstat (limited to 'lib/std/fs')
| -rw-r--r-- | lib/std/fs/file.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/fs/file.zig b/lib/std/fs/file.zig index a4ce898682..33307a9dd6 100644 --- a/lib/std/fs/file.zig +++ b/lib/std/fs/file.zig @@ -35,7 +35,7 @@ pub const File = struct { .windows => os.windows.LARGE_INTEGER, // TODO: Handle possibility of 128 bit numbers? ReFS on windows server 2012 uses a 128 bit file // index. See https://docs.microsoft.com/en-us/windows/win32/api/fileapi/ns-fileapi-by_handle_file_information - else => u64, + else => os.ino_t, }; pub const default_mode = switch (builtin.os.tag) { |
