From d7c3506f14359a8e59a069390a7b3b039d101365 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 10 Dec 2024 14:01:12 +0100 Subject: [PATCH] Fix compiling on modern C++ compilers https://github.com/shadps4-emu/shadPS4/commit/cd9fc5d0e935ac12f469d609b1a643964fb33129 broke it --- src/core/thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/thread.cpp b/src/core/thread.cpp index 0d0804cea..5c205ab5b 100644 --- a/src/core/thread.cpp +++ b/src/core/thread.cpp @@ -141,12 +141,12 @@ void NativeThread::Initialize() { "Failed to allocate signal stack: {}", errno); const stack_t sig_stack = { + .ss_flags = 0, .ss_sp = sig_stack_ptr, .ss_size = sig_stack_size, - .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