File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
library/std/src/os/unix/net Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -75,14 +75,20 @@ impl UnixListener {
7575 let ( addr, len) = sockaddr_un ( path. as_ref ( ) ) ?;
7676 #[ cfg( any( target_os = "windows" , target_os = "redox" , target_os = "espidf" ) ) ]
7777 const backlog: libc:: c_int = 128 ;
78- #[ cfg( any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ) ]
78+ #[ cfg( any(
79+ target_os = "linux" ,
80+ target_os = "freebsd" ,
81+ target_os = "openbsd" ,
82+ target_os = "macos"
83+ ) ) ]
7984 const backlog: libc:: c_int = -1 ;
8085 #[ cfg( not( any(
8186 target_os = "windows" ,
8287 target_os = "redox" ,
8388 target_os = "linux" ,
8489 target_os = "freebsd" ,
8590 target_os = "openbsd" ,
91+ target_os = "macos" ,
8692 target_os = "espidf"
8793 ) ) ) ]
8894 const backlog: libc:: c_int = libc:: SOMAXCONN ;
You can’t perform that action at this time.
0 commit comments