File tree 1 file changed +8
-2
lines changed
library/std/src/os/unix/net
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,12 @@ 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" , target_os = "espidf" ) ) ]
76
+ #[ cfg( any(
77
+ target_os = "windows" ,
78
+ target_os = "redox" ,
79
+ target_os = "espidf" ,
80
+ target_os = "horizon"
81
+ ) ) ]
77
82
const backlog: libc:: c_int = 128 ;
78
83
#[ cfg( any( target_os = "linux" , target_os = "freebsd" , target_os = "openbsd" ) ) ]
79
84
const backlog: libc:: c_int = -1 ;
@@ -83,7 +88,8 @@ impl UnixListener {
83
88
target_os = "linux" ,
84
89
target_os = "freebsd" ,
85
90
target_os = "openbsd" ,
86
- target_os = "espidf"
91
+ target_os = "espidf" ,
92
+ target_os = "horizon"
87
93
) ) ) ]
88
94
const backlog: libc:: c_int = libc:: SOMAXCONN ;
89
95
You can’t perform that action at this time.
0 commit comments