diff options
| author | Jeff Fowler <jeffowler@gmail.com> | 2017-11-09 19:46:53 +0100 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-11-09 13:46:53 -0500 |
| commit | 336d81894da2c34a77cffd1bf903ad9e4dcaa7aa (patch) | |
| tree | 996622298937b485ce9fc9aacbb7b86772b5f85c /std/os | |
| parent | 52521d5f67a2ff1290856e832f3f2a2a2245f41a (diff) | |
| download | zig-336d81894da2c34a77cffd1bf903ad9e4dcaa7aa.tar.gz zig-336d81894da2c34a77cffd1bf903ad9e4dcaa7aa.zip | |
Fix Stat include in darwin land (#605)
Diffstat (limited to 'std/os')
| -rw-r--r-- | std/os/darwin.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/std/os/darwin.zig b/std/os/darwin.zig index 229134cbbd..04c72f71c4 100644 --- a/std/os/darwin.zig +++ b/std/os/darwin.zig @@ -128,7 +128,7 @@ pub fn isatty(fd: i32) -> bool { c.isatty(fd) != 0 } -pub fn fstat(fd: i32, buf: &c.stat) -> usize { +pub fn fstat(fd: i32, buf: &c.Stat) -> usize { errnoWrap(c.fstat(fd, buf)) } @@ -268,6 +268,7 @@ pub const sigset_t = c.sigset_t; pub const empty_sigset = sigset_t(0); pub const timespec = c.timespec; +pub const Stat = c.Stat; /// Renamed from `sigaction` to `Sigaction` to avoid conflict with the syscall. pub const Sigaction = struct { |
