mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-27 18:16:23 +00:00
Fix compiling due to typedefs varying across platforms (#1729)
* Fix compiling on modern C++ compilers
cd9fc5d0e9
broke it
* Fix order
* Test
* Test putting flags in old order
* Remove designated initializer
This commit is contained in:
parent
ea8ad35947
commit
b8a443c728
|
@ -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
|
||||
} // namespace Core
|
||||
|
|
Loading…
Reference in a new issue