Add FreeBSD support

Following 7aeadb06ee
This commit is contained in:
-k
2025-06-12 21:15:11 -04:00
committed by Mitchell Hashimoto
parent 6fe72db0c4
commit e09657e263
9 changed files with 32 additions and 23 deletions

View File

@@ -143,8 +143,8 @@ pub fn init(core_app: *CoreApp, opts: Options) !App {
if (config.@"async-backend" != .auto) {
const result: bool = switch (config.@"async-backend") {
.auto => unreachable,
.epoll => xev.prefer(.epoll),
.io_uring => xev.prefer(.io_uring),
.epoll => if (comptime xev.dynamic) xev.prefer(.epoll) else false,
.io_uring => if (comptime xev.dynamic) xev.prefer(.io_uring) else false,
};
if (result) {