diff --git a/licenses.txt b/licenses.txt index adc6f6fcbbd6fe3cf5aa279b527439357ffc9812..99f968d1d79e8ec1d07910fc04b1b0bc7db337cc 100644 --- a/licenses.txt +++ b/licenses.txt @@ -2,4 +2,7 @@ MIT: = https://spdx.org/licenses/MIT - This - git https://github.com/nektro/zig-extras +- 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 diff --git a/src/lib.zig b/src/lib.zig index 3a1dd0a63ff873e3e2e3bae1252a76c5325feaca..e3057ac6c9c112fcadfe3d5938c3563a24dd1931 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -7,6 +7,9 @@ const linux = @import("sys-linux"); const sys = switch (builtin.target.os.tag) { .linux => linux, + .freebsd => @import("sys-freebsd"), + .netbsd => @import("sys-netbsd"), + .openbsd => @import("sys-openbsd"), else => unreachable, // TODO: }; diff --git a/zig.mod b/zig.mod index 2b8b3c69609a6e70e86c4e2630a2d65dceeda624..fcc79241eacbf99254f93207c3d5ddbfe407b681 100644 --- a/zig.mod +++ b/zig.mod @@ -6,3 +6,6 @@ description: Config management for Zig. 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-freebsd + - src: git https://github.com/nektro/zig-sys-netbsd + - src: git https://github.com/nektro/zig-sys-openbsd