std::alloc: using posix_memalign instead of memalign on solarish.

simpler code path since small alignments are already taking care of.
close GH-124787
This commit is contained in:
David Carlier 2024-05-06 14:27:24 +00:00
parent c3202afa28
commit 1e232fea1b

View File

@ -61,9 +61,7 @@ unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut
cfg_if::cfg_if! {
if #[cfg(any(
target_os = "android",
target_os = "illumos",
target_os = "redox",
target_os = "solaris",
target_os = "espidf",
target_os = "horizon",
target_os = "vita",