about summary refs log tree commit diff
path: root/library/std/src/os
diff options
context:
space:
mode:
authorAndrea Ciliberti <meziu210@icloud.com>2024-01-08 14:43:31 +0100
committerAndrea Ciliberti <meziu210@icloud.com>2024-01-09 12:21:17 +0100
commit7a7bb3ef85ca2f827c39db9fd1594db5162cea13 (patch)
tree798a1e7bc95ef4b1cbea3ad900d8c80b7a5d5d9d /library/std/src/os
parentbe00c5a9b89161b7f45ba80340f709e8e41122f9 (diff)
downloadrust-7a7bb3ef85ca2f827c39db9fd1594db5162cea13.tar.gz
rust-7a7bb3ef85ca2f827c39db9fd1594db5162cea13.zip
Backlog for HorizonOS UnixListener
Diffstat (limited to 'library/std/src/os')
-rw-r--r--library/std/src/os/unix/net/listener.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/library/std/src/os/unix/net/listener.rs b/library/std/src/os/unix/net/listener.rs
index f6835472e2c..8bf1e2dca6f 100644
--- a/library/std/src/os/unix/net/listener.rs
+++ b/library/std/src/os/unix/net/listener.rs
@@ -73,7 +73,12 @@ impl UnixListener {
         unsafe {
             let inner = Socket::new_raw(libc::AF_UNIX, libc::SOCK_STREAM)?;
             let (addr, len) = sockaddr_un(path.as_ref())?;
-            #[cfg(any(target_os = "windows", target_os = "redox", target_os = "espidf"))]
+            #[cfg(any(
+                target_os = "windows",
+                target_os = "redox",
+                target_os = "espidf",
+                target_os = "horizon"
+            ))]
             const backlog: libc::c_int = 128;
             #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"))]
             const backlog: libc::c_int = -1;
@@ -83,7 +88,8 @@ impl UnixListener {
                 target_os = "linux",
                 target_os = "freebsd",
                 target_os = "openbsd",
-                target_os = "espidf"
+                target_os = "espidf",
+                target_os = "horizon"
             )))]
             const backlog: libc::c_int = libc::SOMAXCONN;