build: add the other BSDs

This commit is contained in:
CJ van den Berg 2026-03-08 20:06:56 +01:00
parent 1e29da7765
commit 0f048dc47d
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -175,7 +175,7 @@ fn recurse_watch(backend: *Backend, allocator: std.mem.Allocator, dir_path: []co
const Backend = switch (builtin.os.tag) { const Backend = switch (builtin.os.tag) {
.linux => INotifyBackend, .linux => INotifyBackend,
.macos => if (build_options.macos_fsevents) FSEventsBackend else KQueueBackend, .macos => if (build_options.macos_fsevents) FSEventsBackend else KQueueBackend,
.freebsd => KQueueBackend, .freebsd, .openbsd, .netbsd, .dragonfly => KQueueBackend,
.windows => WindowsBackend, .windows => WindowsBackend,
else => @compileError("file_watcher: unsupported OS"), else => @compileError("file_watcher: unsupported OS"),
}; };