| author | |
| committer | |
| log | a0205fff98f1e3df24d28b78b86d6e8f385d350f |
| tree | 1ffbf7b72d0eb904798391a648d729cdc02de550 |
| parent | 65a6e9eee5f0c59622e97c6fd0f283bf2594d6c5 |
| signature |
This is necessary for riscv32-linux.1 files changed, 2 insertions(+), 1 deletions(-)
lib/std/dynamic_library.zig+2-1| ... | ... | @@ -215,7 +215,8 @@ pub const ElfDynLib = struct { |
| 215 | 215 | const fd = try resolveFromName(path); |
| 216 | 216 | defer posix.close(fd); |
| 217 | 217 | |
| 218 | const stat = try posix.fstat(fd); | |
| 218 | const file: std.fs.File = .{ .handle = fd }; | |
| 219 | const stat = try file.stat(); | |
| 219 | 220 | const size = std.math.cast(usize, stat.size) orelse return error.FileTooBig; |
| 220 | 221 | |
| 221 | 222 | // This one is to read the ELF info. We do more mmapping later |