build.zig: Link Ws2_32 on windows

This commit is contained in:
Louis Pearson 2023-03-19 11:58:22 -06:00
parent 889a55cfad
commit 5d7bdf5b5d

View File

@ -18,4 +18,8 @@ pub fn build(b: *std.Build) void {
lib.addIncludePath("include");
lib.installHeadersDirectory("include", "");
lib.install();
if (target.isWindows()) {
lib.linkSystemLibrary("Ws2_32");
}
}