Skip to content

Commit 7e5516f

Browse files
authored
Vulkan: Fix compile error on glibc 2.43 (#1870)
1 parent 391478b commit 7e5516f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ void VulkanRenderer::GetDeviceFeatures()
343343
int BreathOfTheWildChildProcessMain()
344344
{
345345
InitializeGlobalVulkan();
346-
struct sigaction sa{.sa_handler = [](int unused){_exit(1);}};
346+
struct sigaction sa{};
347+
sa.sa_handler = [](int unused) { _exit(1); };
348+
347349
int ret = sigaction(SIGABRT, &sa, nullptr);
348350

349351
freopen("/dev/null", "w", stderr);

0 commit comments

Comments
 (0)