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 {
75
75
let ( addr, len) = sockaddr_un ( path. as_ref ( ) ) ?;
76
76
#[ cfg( any( target_os = "windows" , target_os = "redox" , target_os = "espidf" ) ) ]
77
77
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
+ ) ) ]
79
84
const backlog: libc:: c_int = -1 ;
80
85
#[ cfg( not( any(
81
86
target_os = "windows" ,
82
87
target_os = "redox" ,
83
88
target_os = "linux" ,
84
89
target_os = "freebsd" ,
85
90
target_os = "openbsd" ,
91
+ target_os = "macos" ,
86
92
target_os = "espidf"
87
93
) ) ) ]
88
94
const backlog: libc:: c_int = libc:: SOMAXCONN ;
You can’t perform that action at this time.
0 commit comments