picoev: enable running veb services on Termux

This commit is contained in:
Delyan Angelov 2025-01-24 11:34:03 +02:00
parent 772d21034c
commit a44ff7813a
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
3 changed files with 145 additions and 2 deletions

View file

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