From 7361e2627ba91fcb92f37720047a80c231832f22 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sat, 16 May 2020 14:50:41 +0100 Subject: [PATCH] Emscripten: disable epoll (#14361) Epoll is not supported by epoll. --- lib/pure/selectors.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pure/selectors.nim b/lib/pure/selectors.nim index a2329a2dc..c475c1b4f 100644 --- a/lib/pure/selectors.nim +++ b/lib/pure/selectors.nim @@ -34,7 +34,7 @@ const hasThreadSupport = compileOption("threads") and defined(threadsafe) const ioselSupportedPlatform* = defined(macosx) or defined(freebsd) or defined(netbsd) or defined(openbsd) 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 ## fully supported by ``ioselectors`` module. @@ -320,7 +320,7 @@ else: # Anything higher is the time to wait in milliseconds. 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 elif bsdPlatform: include ioselects/ioselectors_kqueue