about summary refs log tree commit diff
path: root/library/std/src/sys/unix/mod.rs
diff options
context:
space:
mode:
authorMeziu <meziu210@icloud.com>2021-10-19 17:59:59 +0200
committerMark Drobnak <mark.drobnak@gmail.com>2022-06-13 20:44:39 -0700
commit4e808f87ccb706d339c9ea10c3c9a9c9fd7fc6cb (patch)
treefe1be89ab4da7ec631c4c4d7bd6f824d95c29da4 /library/std/src/sys/unix/mod.rs
parent3bdec3c8abdc48e46715d7b14b764af28da1cee3 (diff)
downloadrust-4e808f87ccb706d339c9ea10c3c9a9c9fd7fc6cb.tar.gz
rust-4e808f87ccb706d339c9ea10c3c9a9c9fd7fc6cb.zip
Horizon OS STD support
Co-authored-by: Ian Chamberlain <ian.h.chamberlain@gmail.com>
Co-authored-by: Mark Drobnak <mark.drobnak@gmail.com>
Diffstat (limited to 'library/std/src/sys/unix/mod.rs')
-rw-r--r--library/std/src/sys/unix/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sys/unix/mod.rs b/library/std/src/sys/unix/mod.rs
index ddec60961f0..000eaff6a02 100644
--- a/library/std/src/sys/unix/mod.rs
+++ b/library/std/src/sys/unix/mod.rs
@@ -43,10 +43,10 @@ pub mod thread_local_key;
 pub mod thread_parker;
 pub mod time;
 
-#[cfg(target_os = "espidf")]
+#[cfg(any(target_os = "espidf", target_os = "horizon"))]
 pub fn init(argc: isize, argv: *const *const u8) {}
 
-#[cfg(not(target_os = "espidf"))]
+#[cfg(not(any(target_os = "espidf", target_os = "horizon")))]
 // SAFETY: must be called only once during runtime initialization.
 // NOTE: this is not guaranteed to run, for example when Rust code is called externally.
 pub unsafe fn init(argc: isize, argv: *const *const u8) {
@@ -344,7 +344,7 @@ cfg_if::cfg_if! {
     }
 }
 
-#[cfg(target_os = "espidf")]
+#[cfg(any(target_os = "espidf", target_os = "horizon"))]
 mod unsupported {
     use crate::io;