Rollup merge of #95505 - sunfishcode:sunfishcode/fix-openbsd, r=dtolnay

Fix library/std compilation on openbsd.

Fix a minor typo from #95241 which prevented compilation on x86_64-unknown-openbsd.
This commit is contained in:
Dylan DPC 2022-03-31 13:09:55 +02:00 committed by GitHub
commit 0b71ca84b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -522,7 +522,7 @@ unsafe fn get_stack_start() -> Option<*mut libc::c_void> {
// new thread
stack_ptr.addr() - current_stack.ss_size
};
Some(stack_ptr.with_addr(stack_addr))
Some(stack_ptr.with_addr(stackaddr))
}
#[cfg(any(