summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAl Hoang <13622+hoanga@users.noreply.github.com>2023-04-29 02:50:46 -0500
committerGitHub <noreply@github.com>2023-04-29 09:50:46 +0200
commita593e40ad614158a35c7d6f777e783b0c910c9ed (patch)
tree38bb6c56b4dfe49a19fc4c4fa5050310c831872d
parent77093bf7b98539285aa358c0e22e6577387c2377 (diff)
downloadNim-a593e40ad614158a35c7d6f777e783b0c910c9ed.tar.gz
fix build on haiku (#21752)
* missing maxDescriptors
-rw-r--r--lib/pure/asyncdispatch.nim2
-rw-r--r--lib/pure/selectors.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim
index 63062d8da..24c1ec3d5 100644
--- a/lib/pure/asyncdispatch.nim
+++ b/lib/pure/asyncdispatch.nim
@@ -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
diff --git a/lib/pure/selectors.nim b/lib/pure/selectors.nim
index b15a25a1d..fc65e0e9b 100644
--- a/lib/pure/selectors.nim
+++ b/lib/pure/selectors.nim
@@ -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