diff options
| author | tgschultz <tgschultz@gmail.com> | 2018-04-18 15:46:50 -0500 |
|---|---|---|
| committer | tgschultz <tgschultz@gmail.com> | 2018-04-18 15:46:50 -0500 |
| commit | bf9cf28322bf19aef72cbc5876e2ca083f762d7c (patch) | |
| tree | d80b14afe0c211b2620e3cfe6da424fc8bff29ff /std/os/darwin.zig | |
| parent | 8b66dd8c7d2809c3ec86f1eec8acc0a1c184c8c2 (diff) | |
| download | zig-bf9cf28322bf19aef72cbc5876e2ca083f762d7c.tar.gz zig-bf9cf28322bf19aef72cbc5876e2ca083f762d7c.zip | |
Fixed compiler errors around darwin code.
Diffstat (limited to 'std/os/darwin.zig')
| -rw-r--r-- | std/os/darwin.zig | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/std/os/darwin.zig b/std/os/darwin.zig index 3cf08199b2..0f9c0be28b 100644 --- a/std/os/darwin.zig +++ b/std/os/darwin.zig @@ -251,8 +251,8 @@ pub fn readlink(noalias path: &const u8, noalias buf_ptr: &u8, buf_len: usize) u return errnoWrap(c.readlink(path, buf_ptr, buf_len)); } -pub fn gettimeofday(&timeval, ?&timezone) usize { - return errnoWrap(c.gettimeofday(timeval, timezone)); +pub fn gettimeofday(tv: ?&timeval, tz: ?&timezone) usize { + return errnoWrap(c.gettimeofday(tv, tz)); } pub fn nanosleep(req: &const timespec, rem: ?×pec) usize { @@ -322,3 +322,11 @@ pub fn sigaddset(set: &sigset_t, signo: u5) void { fn errnoWrap(value: isize) usize { return @bitCast(usize, if (value == -1) -isize(*c._errno()) else value); } + + +pub const timezone = c.timezone; +pub const timeval = c.timeval; +pub const mach_timebase_info_data = c.mach_timebase_info_data; + +pub const mach_absolute_time = c.mach_absolute_time; +pub const mach_timebase_info = c.mach_timebase_info;
\ No newline at end of file |
