@@ -43,10 +43,10 @@ pub mod thread_local_key;
43
43
pub mod thread_parker;
44
44
pub mod time;
45
45
46
- #[ cfg( any ( target_os = "espidf" , target_os = "horizon" ) ) ]
46
+ #[ cfg( target_os = "espidf" ) ]
47
47
pub fn init ( argc : isize , argv : * const * const u8 ) { }
48
48
49
- #[ cfg( not( any ( target_os = "espidf" , target_os = "horizon" ) ) ) ]
49
+ #[ cfg( not( target_os = "espidf" ) ) ]
50
50
// SAFETY: must be called only once during runtime initialization.
51
51
// NOTE: this is not guaranteed to run, for example when Rust code is called externally.
52
52
pub unsafe fn init ( argc : isize , argv : * const * const u8 ) {
@@ -88,6 +88,7 @@ pub unsafe fn init(argc: isize, argv: *const *const u8) {
88
88
target_os = "ios" ,
89
89
target_os = "redox" ,
90
90
target_os = "l4re" ,
91
+ target_os = "horizon" ,
91
92
) ) ) ]
92
93
' poll: {
93
94
use crate :: sys:: os:: errno;
@@ -131,6 +132,7 @@ pub unsafe fn init(argc: isize, argv: *const *const u8) {
131
132
target_os = "fuchsia" ,
132
133
target_os = "vxworks" ,
133
134
target_os = "l4re" ,
135
+ target_os = "horizon" ,
134
136
) ) ) ]
135
137
{
136
138
use crate :: sys:: os:: errno;
@@ -149,7 +151,7 @@ pub unsafe fn init(argc: isize, argv: *const *const u8) {
149
151
}
150
152
151
153
unsafe fn reset_sigpipe ( ) {
152
- #[ cfg( not( any( target_os = "emscripten" , target_os = "fuchsia" ) ) ) ]
154
+ #[ cfg( not( any( target_os = "emscripten" , target_os = "fuchsia" , target_os = "horizon" ) ) ) ]
153
155
rtassert ! ( signal( libc:: SIGPIPE , libc:: SIG_IGN ) != libc:: SIG_ERR ) ;
154
156
}
155
157
}
0 commit comments