Skip to content

Commit a4079c9

Browse files
committed
Auto merge of rust-lang#119970 - GuillaumeGomez:rollup-p53c19o, r=GuillaumeGomez
Rollup of 3 pull requests Successful merges: - rust-lang#119561 (rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 5)) - rust-lang#119742 (ARMv6K HorizonOS - Fix backlog for UnixListener) - rust-lang#119960 (Inline 2 functions that appear in dep-graph profiles.) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 38a346e + 600fcda commit a4079c9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

std/src/os/unix/net/listener.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ impl UnixListener {
7373
unsafe {
7474
let inner = Socket::new_raw(libc::AF_UNIX, libc::SOCK_STREAM)?;
7575
let (addr, len) = sockaddr_un(path.as_ref())?;
76-
#[cfg(any(target_os = "windows", target_os = "redox", target_os = "espidf"))]
76+
#[cfg(any(
77+
target_os = "windows",
78+
target_os = "redox",
79+
target_os = "espidf",
80+
target_os = "horizon"
81+
))]
7782
const backlog: libc::c_int = 128;
7883
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"))]
7984
const backlog: libc::c_int = -1;
@@ -83,7 +88,8 @@ impl UnixListener {
8388
target_os = "linux",
8489
target_os = "freebsd",
8590
target_os = "openbsd",
86-
target_os = "espidf"
91+
target_os = "espidf",
92+
target_os = "horizon"
8793
)))]
8894
const backlog: libc::c_int = libc::SOMAXCONN;
8995

0 commit comments

Comments
 (0)