From 0f4db4c980146e4a3fc86a9a9070452a25ff9317 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Fri, 29 May 2026 16:35:54 -0700 Subject: [PATCH] macos support --- licenses.txt | 1 + time.zig | 1 + zig.mod | 1 + 3 files changed, 3 insertions(+) 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 -- 2.54.0