diff --git a/build.zig b/build.zig index d88c1116c3..2a7955f890 100644 --- a/build.zig +++ b/build.zig @@ -121,6 +121,12 @@ pub fn build(b: *std.Build) !void { lib.linkLibrary(dep.artifact("wayland-headers")); module.linkLibrary(dep.artifact("wayland-headers")); } + if (b.lazyDependency("x11_headers", .{ + .target = target, + .optimize = optimize, + })) |dep| { + module.linkLibrary(dep.artifact("x11-headers")); + } } if (target.result.isDarwin()) { if (b.lazyDependency("mach_objc", .{