Vulkan: Fix compile error on glibc 2.43 (#1870)

This commit is contained in:
Sapphire 2026-04-11 22:16:07 -05:00 committed by GitHub
parent 391478b307
commit 7e5516f94d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -343,7 +343,9 @@ void VulkanRenderer::GetDeviceFeatures()
int BreathOfTheWildChildProcessMain()
{
InitializeGlobalVulkan();
struct sigaction sa{.sa_handler = [](int unused){_exit(1);}};
struct sigaction sa{};
sa.sa_handler = [](int unused) { _exit(1); };
int ret = sigaction(SIGABRT, &sa, nullptr);
freopen("/dev/null", "w", stderr);