summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorBarrOff <58253563+BarrOff@users.noreply.github.com>2021-12-30 20:10:36 +0000
committerGitHub <noreply@github.com>2021-12-30 21:10:36 +0100
commit23d64be860958fb7149baed44f6e493394950d69 (patch)
tree5687be5295a0d1014b9639dce6cd974be053a0fa /lib
parenta9223d4cdd2e6c23506b666a0958cd2ae3bf5dfd (diff)
downloadNim-23d64be860958fb7149baed44f6e493394950d69.tar.gz
enable `maxDescriptors` on Illumos/Solaris (#19295)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/asyncdispatch.nim4
-rw-r--r--lib/pure/selectors.nim4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim
index 20ad60427..5e2a8d98e 100644
--- a/lib/pure/asyncdispatch.nim
+++ b/lib/pure/asyncdispatch.nim
@@ -1974,11 +1974,11 @@ when defined(posix):
   import posix
 
 when defined(linux) or defined(windows) or defined(macosx) or defined(bsd) or
-       defined(zephyr) or defined(freertos):
+       defined(solaris) or defined(zephyr) or defined(freertos):
   proc maxDescriptors*(): int {.raises: OSError.} =
     ## Returns the maximum number of active file descriptors for the current
     ## process. This involves a system call. For now `maxDescriptors` is
-    ## supported on the following OSes: Windows, Linux, OSX, BSD.
+    ## supported on the following OSes: Windows, Linux, OSX, BSD, Solaris.
     when defined(windows):
       result = 16_700_000
     elif defined(zephyr) or defined(freertos):
diff --git a/lib/pure/selectors.nim b/lib/pure/selectors.nim
index ec441f6da..313702370 100644
--- a/lib/pure/selectors.nim
+++ b/lib/pure/selectors.nim
@@ -324,11 +324,11 @@ else:
     doAssert(timeout >= -1, "Cannot select with a negative value, got: " & $timeout)
 
   when defined(linux) or defined(windows) or defined(macosx) or defined(bsd) or
-       defined(zephyr) or defined(freertos):
+       defined(solaris) or defined(zephyr) or defined(freertos):
     template maxDescriptors*(): int =
       ## Returns the maximum number of active file descriptors for the current
       ## process. This involves a system call. For now `maxDescriptors` is
-      ## supported on the following OSes: Windows, Linux, OSX, BSD.
+      ## supported on the following OSes: Windows, Linux, OSX, BSD, Solaris.
       when defined(windows):
         16_700_000
       elif defined(zephyr) or defined(freertos):