We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11035f9 commit a10b3cdCopy full SHA for a10b3cd
library/std/src/os/unix/net/listener.rs
@@ -73,7 +73,7 @@ impl UnixListener {
73
unsafe {
74
let inner = Socket::new_raw(libc::AF_UNIX, libc::SOCK_STREAM)?;
75
let (addr, len) = sockaddr_un(path.as_ref())?;
76
- #[cfg(any(target_os = "windows", target_os = "redox"))]
+ #[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"))]
79
const backlog: libc::c_int = -1;
@@ -82,7 +82,8 @@ impl UnixListener {
82
target_os = "redox",
83
target_os = "linux",
84
target_os = "freebsd",
85
- target_os = "openbsd"
+ target_os = "openbsd",
86
+ target_os = "espidf"
87
)))]
88
const backlog: libc::c_int = libc::SOMAXCONN;
89
0 commit comments