Skip to content

Commit 6686577

Browse files
committed
memalign is now implemented.
1 parent 620c9d5 commit 6686577

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

library/std/src/sys/unix/alloc.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,9 @@ unsafe impl GlobalAlloc for System {
5353
}
5454

5555
cfg_if::cfg_if! {
56-
if #[cfg(target_os = "freertos")] {
57-
#[inline]
58-
unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
59-
libc::malloc(layout.size()) as *mut u8
60-
}
61-
} else if #[cfg(any(
56+
if #[cfg(any(
6257
target_os = "android",
58+
target_os = "freertos",
6359
target_os = "illumos",
6460
target_os = "redox",
6561
target_os = "solaris"

0 commit comments

Comments
 (0)