picoev: add implementation for OpenBSD using kqueue (#24801)

This commit is contained in:
Laurent Cheylus 2025-06-28 07:13:53 +02:00 committed by GitHub
parent d1d43abf5c
commit ce33cc490f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 206 additions and 1 deletions

View file

@ -325,7 +325,7 @@ pub fn new(config Config) !&Picoev {
// select on windows and others
$if linux || termux {
pv.loop = create_epoll_loop(0) or { panic(err) }
} $else $if freebsd || macos {
} $else $if freebsd || macos || openbsd {
pv.loop = create_kqueue_loop(0) or { panic(err) }
} $else {
pv.loop = create_select_loop(0) or { panic(err) }