fix build on haiku (#21752)

* missing maxDescriptors
This commit is contained in:
Al Hoang
2023-04-29 02:50:46 -05:00
committed by GitHub
parent 77093bf7b9
commit a593e40ad6
2 changed files with 2 additions and 2 deletions

View File

@@ -2035,7 +2035,7 @@ when defined(posix):
import posix
when defined(linux) or defined(windows) or defined(macosx) or defined(bsd) or
defined(solaris) or defined(zephyr) or defined(freertos) or defined(nuttx):
defined(solaris) or defined(zephyr) or defined(freertos) or defined(nuttx) or defined(haiku):
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

View File

@@ -328,7 +328,7 @@ 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(solaris) or defined(zephyr) or defined(freertos) or defined(nuttx):
defined(solaris) or defined(zephyr) or defined(freertos) or defined(nuttx) or defined(haiku):
template maxDescriptors*(): int =
## Returns the maximum number of active file descriptors for the current
## process. This involves a system call. For now `maxDescriptors` is