mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
picoev: enable running veb services on Termux
This commit is contained in:
parent
772d21034c
commit
a44ff7813a
3 changed files with 145 additions and 2 deletions
|
@ -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) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue