From b9ecc9e21d8244413512911240eceb82f0844158 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sun, 23 Aug 2026 18:56:05 -0700 Subject: [PATCH] add support freebsd, netbsd, openbsd --- licenses.txt | 3 +++ time.zig | 3 +++ zig.mod | 3 +++ 3 files changed, 9 insertions(+) diff --git a/licenses.txt b/licenses.txt index 39bdf77e7dc05a6f2f36a0aecdda2d7612bec956..ff32ca9c69e8aac6e66a9cdef85d93c07ebbc400 100644 --- a/licenses.txt +++ b/licenses.txt @@ -4,7 +4,10 @@ MIT: - 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-freebsd - git https://github.com/nektro/zig-sys-linux +- git https://github.com/nektro/zig-sys-netbsd +- git https://github.com/nektro/zig-sys-openbsd CC0-1.0: = https://spdx.org/licenses/CC0-1.0 diff --git a/time.zig b/time.zig index 7d4d3ea5a2586d4ee8e4b7ac85650e27031167e4..bd012d59a30e48b89db7f718499627f7fa91daaf 100644 --- a/time.zig +++ b/time.zig @@ -8,6 +8,9 @@ const time = @This(); const sys = switch (builtin.target.os.tag) { .linux => @import("sys-linux"), .macos => @import("sys-darwin"), + .freebsd => @import("sys-freebsd"), + .netbsd => @import("sys-netbsd"), + .openbsd => @import("sys-openbsd"), else => unreachable, // TODO: }; diff --git a/zig.mod b/zig.mod index 3692ea1910d5969a76c40ab32ed8c2a773d621c0..e8b93aa14006bfa8f0f5a803ebdcfcd8f853f3ee 100644 --- a/zig.mod +++ b/zig.mod @@ -8,6 +8,9 @@ dependencies: - src: git https://github.com/nektro/zig-sys-linux - src: git https://github.com/nektro/zig-sys-darwin - src: git https://github.com/nektro/zig-nio + - src: git https://github.com/nektro/zig-sys-freebsd + - src: git https://github.com/nektro/zig-sys-netbsd + - src: git https://github.com/nektro/zig-sys-openbsd root_dependencies: - src: git https://github.com/nektro/zig-expect - src: git https://github.com/nektro/zig-nfs -- 2.54.0