diff --git a/licenses.txt b/licenses.txt index e2f2f1fdaf864b8edf7ce15bd34b87c9dd86504c..e1193d64513fd06a1ca0e6e6a5ef031ed3657953 100644 --- a/licenses.txt +++ b/licenses.txt @@ -3,6 +3,7 @@ MIT: - This - git https://github.com/nektro/zig-expect - git https://github.com/nektro/zig-extras +- git https://github.com/nektro/zig-sys-darwin - git https://github.com/nektro/zig-sys-linux Unspecified: diff --git a/time.zig b/time.zig index 20a95f3394cb1a0dacf6fade1d52a8d1757e311d..1c61d7dcd890f6341f6441845d95c55d3c601656 100644 --- a/time.zig +++ b/time.zig @@ -7,6 +7,7 @@ const time = @This(); const sys = switch (builtin.target.os.tag) { .linux => sys_linux, + .macos => @import("sys-darwin"), else => unreachable, // TODO: }; diff --git a/zig.mod b/zig.mod index 7c26948a0776473010f4d90a4c77591d28d79998..cf7dc4bc2781c310abe8f4138aa9b34cedb01adf 100644 --- a/zig.mod +++ b/zig.mod @@ -7,5 +7,6 @@ min_zig_version: 0.11.0-dev.1681+0bb178bbb dependencies: - src: git https://github.com/nektro/zig-extras - src: git https://github.com/nektro/zig-sys-linux + - src: git https://github.com/nektro/zig-sys-darwin root_dependencies: - src: git https://github.com/nektro/zig-expect