Merge pull request #11807 from brad0/openbsd_thread_cpp_build_fix
Fix building on OpenBSD
This commit is contained in:
commit
3c9162f35e
|
@ -200,8 +200,8 @@ std::tuple<void*, size_t> GetCurrentThreadStack()
|
|||
stack_t stack;
|
||||
pthread_stackseg_np(self, &stack);
|
||||
|
||||
stack_addr = reinterpret_cast<u8*>(stack->ss_sp) - stack->ss_size;
|
||||
stack_size = stack->ss_size;
|
||||
stack_addr = reinterpret_cast<u8*>(stack.ss_sp) - stack.ss_size;
|
||||
stack_size = stack.ss_size;
|
||||
#else
|
||||
pthread_attr_t attr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue