diff --git a/std/os/linux.zig b/std/os/linux.zig index 8fb1ac511a..5951f9d7bc 100644 --- a/std/os/linux.zig +++ b/std/os/linux.zig @@ -811,5 +811,9 @@ pub fn timerfd_settime(fd: i32, flags: u32, new_value: &const itimerspec, old_va } test "import linux_test" { - _ = @import("linux_test.zig"); + // TODO lazy analysis should prevent this test from being compiled on windows, but + // it is still compiled on windows + if (builtin.os == builtin.Os.linux) { + _ = @import("linux_test.zig"); + } }