File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
library/std/src/os/unix/net Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ impl UnixListener {
73
73
unsafe {
74
74
let inner = Socket :: new_raw ( libc:: AF_UNIX , libc:: SOCK_STREAM ) ?;
75
75
let ( addr, len) = sockaddr_un ( path. as_ref ( ) ) ?;
76
- #[ cfg( any( target_os = "windows" , target_os = "redox" ) ) ]
76
+ #[ cfg( any( target_os = "windows" , target_os = "redox" , target_os = "espidf" ) ) ]
77
77
const backlog: libc:: c_int = 128 ;
78
78
#[ cfg( any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ) ]
79
79
const backlog: libc:: c_int = -1 ;
@@ -82,7 +82,8 @@ impl UnixListener {
82
82
target_os = "redox" ,
83
83
target_os = "linux" ,
84
84
target_os = "freebsd" ,
85
- target_os = "openbsd"
85
+ target_os = "openbsd" ,
86
+ target_os = "espidf"
86
87
) ) ) ]
87
88
const backlog: libc:: c_int = libc:: SOMAXCONN ;
88
89
You can’t perform that action at this time.
0 commit comments