From c89f11e1dbdbeb15057a3850e1a2348445caa4c2 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 30 Mar 2022 18:06:21 -0700 Subject: [PATCH] Fix library/std compilation on openbsd. Fix a minor typo from #95241 which prevented compilation on x86_64-unknown-openbsd. --- library/std/src/sys/unix/thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/sys/unix/thread.rs b/library/std/src/sys/unix/thread.rs index be70d00cb1ace..bb4e4ee9aa75b 100644 --- a/library/std/src/sys/unix/thread.rs +++ b/library/std/src/sys/unix/thread.rs @@ -522,7 +522,7 @@ pub mod guard { // new thread stack_ptr.addr() - current_stack.ss_size }; - Some(stack_ptr.with_addr(stack_addr)) + Some(stack_ptr.with_addr(stackaddr)) } #[cfg(any(