diff --git a/build.zig b/build.zig index 1081a4d..604a590 100644 --- a/build.zig +++ b/build.zig @@ -41,6 +41,10 @@ pub fn build(b: *std.Build) void { exe.linkFramework("IOKit"); } + if (target.result.os.tag == .linux) { + exe.linkLibC(); + } + // This declares intent for the executable to be installed into the // standard location when the user invokes the "install" step (the default // step when running `zig build`).