diff --git a/src/core/thread.cpp b/src/core/thread.cpp index 0d0804ce..07681e6b 100644 --- a/src/core/thread.cpp +++ b/src/core/thread.cpp @@ -140,13 +140,12 @@ void NativeThread::Initialize() { ASSERT_MSG(posix_memalign(&sig_stack_ptr, page_size, sig_stack_size) == 0, "Failed to allocate signal stack: {}", errno); - const stack_t sig_stack = { - .ss_sp = sig_stack_ptr, - .ss_size = sig_stack_size, - .ss_flags = 0, - }; + stack_t sig_stack; + sig_stack.ss_sp = sig_stack_ptr; + sig_stack.ss_size = sig_stack_size; + sig_stack.ss_flags = 0; ASSERT_MSG(sigaltstack(&sig_stack, nullptr) == 0, "Failed to set signal stack: {}", errno); #endif } -} // namespace Core \ No newline at end of file +} // namespace Core