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:
parent
c3202afa28
commit
1e232fea1b
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user