Skip to content

Commit 23d64be

Browse files
authored
enable maxDescriptors on Illumos/Solaris (#19295)
1 parent a9223d4 commit 23d64be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/pure/asyncdispatch.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,11 +1974,11 @@ when defined(posix):
19741974
import posix
19751975

19761976
when defined(linux) or defined(windows) or defined(macosx) or defined(bsd) or
1977-
defined(zephyr) or defined(freertos):
1977+
defined(solaris) or defined(zephyr) or defined(freertos):
19781978
proc maxDescriptors*(): int {.raises: OSError.} =
19791979
## Returns the maximum number of active file descriptors for the current
19801980
## process. This involves a system call. For now `maxDescriptors` is
1981-
## supported on the following OSes: Windows, Linux, OSX, BSD.
1981+
## supported on the following OSes: Windows, Linux, OSX, BSD, Solaris.
19821982
when defined(windows):
19831983
result = 16_700_000
19841984
elif defined(zephyr) or defined(freertos):

lib/pure/selectors.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,11 @@ else:
324324
doAssert(timeout >= -1, "Cannot select with a negative value, got: " & $timeout)
325325

326326
when defined(linux) or defined(windows) or defined(macosx) or defined(bsd) or
327-
defined(zephyr) or defined(freertos):
327+
defined(solaris) or defined(zephyr) or defined(freertos):
328328
template maxDescriptors*(): int =
329329
## Returns the maximum number of active file descriptors for the current
330330
## process. This involves a system call. For now `maxDescriptors` is
331-
## supported on the following OSes: Windows, Linux, OSX, BSD.
331+
## supported on the following OSes: Windows, Linux, OSX, BSD, Solaris.
332332
when defined(windows):
333333
16_700_000
334334
elif defined(zephyr) or defined(freertos):

0 commit comments

Comments
 (0)