about summary refs log tree commit diff
path: root/library/std/src/sys/unix/alloc.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/alloc.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/alloc.rs')
-rw-r--r--library/std/src/sys/unix/alloc.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/alloc.rs b/library/std/src/sys/unix/alloc.rs
index 7c3d9573940..9d6567c9fb4 100644
--- a/library/std/src/sys/unix/alloc.rs
+++ b/library/std/src/sys/unix/alloc.rs
@@ -58,7 +58,8 @@ cfg_if::cfg_if! {
         target_os = "illumos",
         target_os = "redox",
         target_os = "solaris",
-        target_os = "espidf"
+        target_os = "espidf",
+        target_os = "horizon"
     ))] {
         #[inline]
         unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {