parent
390ff428f0
commit
7361e2627b
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ const hasThreadSupport = compileOption("threads") and defined(threadsafe)
|
||||||
const ioselSupportedPlatform* = defined(macosx) or defined(freebsd) or
|
const ioselSupportedPlatform* = defined(macosx) or defined(freebsd) or
|
||||||
defined(netbsd) or defined(openbsd) or
|
defined(netbsd) or defined(openbsd) or
|
||||||
defined(dragonfly) or
|
defined(dragonfly) or
|
||||||
(defined(linux) and not defined(android))
|
(defined(linux) and not defined(android) and not defined(emscripten))
|
||||||
## This constant is used to determine whether the destination platform is
|
## This constant is used to determine whether the destination platform is
|
||||||
## fully supported by ``ioselectors`` module.
|
## fully supported by ``ioselectors`` module.
|
||||||
|
|
||||||
|
|
@ -320,7 +320,7 @@ else:
|
||||||
# Anything higher is the time to wait in milliseconds.
|
# Anything higher is the time to wait in milliseconds.
|
||||||
doAssert(timeout >= -1, "Cannot select with a negative value, got " & $timeout)
|
doAssert(timeout >= -1, "Cannot select with a negative value, got " & $timeout)
|
||||||
|
|
||||||
when defined(linux):
|
when defined(linux) and not defined(emscripten):
|
||||||
include ioselects/ioselectors_epoll
|
include ioselects/ioselectors_epoll
|
||||||
elif bsdPlatform:
|
elif bsdPlatform:
|
||||||
include ioselects/ioselectors_kqueue
|
include ioselects/ioselectors_kqueue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue