We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-1
1 parent c6c4abf commit 08266ffCopy full SHA for 08266ff
library/std/src/os/unix/net/listener.rs
@@ -75,14 +75,20 @@ impl UnixListener {
75
let (addr, len) = sockaddr_un(path.as_ref())?;
76
#[cfg(any(target_os = "windows", target_os = "redox", target_os = "espidf"))]
77
const backlog: libc::c_int = 128;
78
- #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"))]
+ #[cfg(any(
79
+ target_os = "linux",
80
+ target_os = "freebsd",
81
+ target_os = "openbsd",
82
+ target_os = "macos"
83
+ ))]
84
const backlog: libc::c_int = -1;
85
#[cfg(not(any(
86
target_os = "windows",
87
target_os = "redox",
88
target_os = "linux",
89
target_os = "freebsd",
90
target_os = "openbsd",
91
+ target_os = "macos",
92
target_os = "espidf"
93
)))]
94
const backlog: libc::c_int = libc::SOMAXCONN;
0 commit comments