diff --git a/counting_writer.zig b/counting_writer.zig index a17393254e9b41c0536e57b7d4b8be54b5b2e36b..f4569cf0433923c86a02db4155117d289348338c 100644 --- a/counting_writer.zig +++ b/counting_writer.zig @@ -5,6 +5,7 @@ const nio = @import("./nio.zig"); const sys = switch (builtin.target.os.tag) { .linux => @import("sys-linux"), + .macos => @import("sys-darwin"), else => unreachable, }; diff --git a/fixed_buffer_stream.zig b/fixed_buffer_stream.zig index 268b3942d8f02d7502c6181a0f8587d983f18204..5a15ca4e3a671fa23f4573bd179319cac1766a0a 100644 --- a/fixed_buffer_stream.zig +++ b/fixed_buffer_stream.zig @@ -5,6 +5,7 @@ const sys_linux = @import("sys-linux"); const sys = switch (builtin.target.os.tag) { .linux => sys_linux, + .macos => @import("sys-darwin"), else => unreachable, }; diff --git a/licenses.txt b/licenses.txt index 2c5778f4aa7a09e9af4858befd447c2d56336f91..6950a9bd513ce48fdc3e4dc6419e1416d888cd78 100644 --- a/licenses.txt +++ b/licenses.txt @@ -5,6 +5,7 @@ MPL-2.0: MIT: = https://spdx.org/licenses/MIT - 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/nio.zig b/nio.zig index 93d72eab7d844cb3def8e8d31ecea41cab5a934c..a23bd677b1af2e95ac70e1eec85ecfa95de0ee8d 100644 --- a/nio.zig +++ b/nio.zig @@ -7,6 +7,7 @@ pub const fmt = @import("./fmt.zig"); const sys = switch (builtin.target.os.tag) { .linux => sys_linux, + .macos => @import("sys-darwin"), else => unreachable, }; diff --git a/null_writer.zig b/null_writer.zig index 6950efba0a952f3eb442efac5ef554d9f11307a1..a108f07a76ec522a151112d08b9e9f3add776299 100644 --- a/null_writer.zig +++ b/null_writer.zig @@ -5,6 +5,7 @@ const nio = @import("./nio.zig"); const sys = switch (builtin.target.os.tag) { .linux => @import("sys-linux"), + .macos => @import("sys-darwin"), else => unreachable, }; diff --git a/zigmod.yml b/zigmod.yml index 65fa7de01e7daa77fb180c622784099ed929af2a..05d7c2ecc8593048a30d8e2e9a095cf83c225609 100644 --- a/zigmod.yml +++ b/zigmod.yml @@ -7,3 +7,4 @@ min_zig_version: 0.14.0 dependencies: - src: git https://github.com/nektro/zig-sys-linux - src: git https://github.com/nektro/zig-extras + - src: git https://github.com/nektro/zig-sys-darwin